Analog extender for ESP-8266 and Arduino

  Рет қаралды 67,477

nenioc187

nenioc187

Күн бұрын

Пікірлер: 81
@Andreas-gh6is
@Andreas-gh6is 5 жыл бұрын
Cautionary note: These particular ADCs are a lot "slower" than ordinary, internal "Arduino ADCs" (AVR or the ESP ones). The ADS1115 has a max rate at 860 SPS, but only if supplied with 5V. In single-shot mode, this will almost certainly be lower. In continuous mode, you can read values faster via i2c, but they won't actually be different. The Alert/RDY pin can be used for interrupt based reading. Also the channels can't be read from in parallel, so you get 860SPS on ONE channel. For two channels at that rate you need two sensors.
@XRKAudio
@XRKAudio 4 жыл бұрын
Very helpful video. You do a great job with the wiring not leaving out any steps. I like the mild dry humor sprinkled within too. Will go and try out the ADC with ESP8266 now. Thank you!
@9jatechie
@9jatechie Жыл бұрын
To wire up I2C, you need to use pull-up resistors. It's part of the specification. Great video I must say.
@izemanevobike
@izemanevobike 5 жыл бұрын
Excellent video. This is how any video should look like. Easy to follow from the beginning to the end. Thanks!!!
@alphonsesynrem28
@alphonsesynrem28 6 жыл бұрын
Really really nice. Just planning to get this adc module. Your video showed me the light at the end of the tunnel. Thank you.
@squip88
@squip88 7 жыл бұрын
Thank you for making this video - I have an 8266 that I need to read multiple analogue and this should do the trick :)
@ExclusiveEntertanmnt
@ExclusiveEntertanmnt 7 жыл бұрын
Thanks for taking the time and laying out the details... Pretty damn clear and concise configuration layout... easy to see, hear and comprehend ... from your quick experienced pass through the Audino Library line changes to something interesting being how we can utilize the different 12 C addresses for additional board installations... :) You MANIAC... :) Pretty much next level thinking for cross applications... This is a must keep video for our personal libraries... Made me smile when you outlined having to do the research on the expansion boards having found the miniature pcb version of the NodeMcu board... another heads up... although :) HOW SMALL CAN WE WANT IT... Micro soldering is such a pain... :) Starts to become about solder paste.... and a heat gun instead of a solder iron.. :) Thanks again
@nenioc187
@nenioc187 7 жыл бұрын
Thanks for those enthusiastic words. If you like the videos, I'll keep on rolling them out.
@asiw
@asiw 7 жыл бұрын
Fantastic, I was looking to use a giroscope sensor with an Esp8266 dev board so the video was perfect for me.
@mm1979dk
@mm1979dk 6 жыл бұрын
there are better gyroscope boards with builtin I2C, so you don't have to ADC.
@ChaitanyaDhareshwar
@ChaitanyaDhareshwar 6 жыл бұрын
Use the GY521 instead - it's a really good low-cost gyroscope+accelerometer, and is I2C enabled.
@sledzeppelin
@sledzeppelin 3 жыл бұрын
I really wish there was a NodeMCU board with multiple and better built-in ADCs.
@comicy2
@comicy2 6 жыл бұрын
Thanks for sharing this!! I love all your videos and this one especially just saved me on my current project!!
@jigsound
@jigsound 3 жыл бұрын
This kind of extender is a life-saver!👌
@faith-ce5yt
@faith-ce5yt 8 ай бұрын
Can i add 2 turbidity sensor with ads1115? I don't have A0 space anymore
@MsToshinori
@MsToshinori 3 жыл бұрын
You could use analog read dunction that will power up some outputs and reads values. I use one analog input to read two pot's. One guy show how to remove noise between outputs by puting diodes.
@DAveShillito
@DAveShillito 7 жыл бұрын
Nice video :) Minor nitpick, at 7:47 you say its a Digital to Analogue converter, it's actually an Analogue to Digital Converter (ADC) i.e. it goes the other way.
@nenioc187
@nenioc187 7 жыл бұрын
Of course you're right. It happened in the heat of the battle ;-) That's why I liked the expression analog-extender best :-D
@hashaamkhurshid3614
@hashaamkhurshid3614 5 жыл бұрын
how can i use pulse sensor and LM35 to send data to firebasedatabas. even i don't know multiplexing code
@diegoteceletro
@diegoteceletro 3 жыл бұрын
i tried to use ads1115, but the inputs interfere with the other
@muhammadfarhan8404
@muhammadfarhan8404 4 жыл бұрын
is there any diffrent configuration pin for additional ADS1115? For example 0x48 and 0x49
@arkhamangel959
@arkhamangel959 3 жыл бұрын
Any thoughts on a cheap solution for ESP-01?
@TheGermanysucks
@TheGermanysucks 6 жыл бұрын
So can I use these analog pins for sensors which draw 5v ?? How?
@afdyclinton1315
@afdyclinton1315 7 жыл бұрын
thank you for sharing this tutorial, but do you have any information about how to use interrupt with ADS1115 ?
@lhimo88
@lhimo88 6 жыл бұрын
Can there be power issues with this many (~20) sensors?
@arthurleigh-wood8464
@arthurleigh-wood8464 4 жыл бұрын
Can I still use I2C for an OLED display whilst using this analog extender?
@nenioc187
@nenioc187 4 жыл бұрын
As long as you using another I2C address for the display it shouldn't be a problem.
@Lifehy
@Lifehy 5 жыл бұрын
i need two analogue pins in esp 8266 but just wanna know that is it work automatically or i will need some coding ?
@nourallahmahfoudh6921
@nourallahmahfoudh6921 5 жыл бұрын
Nice video, can we connect pin 6 of an arduino with clock line pin of the extender and pin 7 of an arduino with data line pin of the extender? instead of using pin 4 and 5 of the arduino board?
@nenioc187
@nenioc187 5 жыл бұрын
The Uno and the Nano have the I2C interface on these specific two pins. If you want to use other than pin 4 and 5, you have to use the use the SoftwareSerial method for it.
@binteadam4699
@binteadam4699 4 жыл бұрын
when code run, error occur the wire not declared in this scope.
@Qhlanas
@Qhlanas 4 жыл бұрын
Kindly reply me
@ShubhamPatil-yt5eg
@ShubhamPatil-yt5eg 4 жыл бұрын
Hey sir What if we want to extend the digital pins... What if we want more digital pins.. how can we get those?
@jigsound
@jigsound 3 жыл бұрын
I've been successful with the PCF8574 IO Expansion Board; it is connected with exactly the same protocol as shown in this video. 😉 - Eero
@jigsound
@jigsound 3 жыл бұрын
With it, it's even easier to change the address and thus have multiple of those on the same I2C transmission bus. PS. I've experienced that a small capacitor in parallel with their power pins is required to make the data connection stable.
@ShubhamPatil-yt5eg
@ShubhamPatil-yt5eg 3 жыл бұрын
@@jigsound I tried using PCF GPIO Extender bt it didn't work it would be great if u do a video on it too
@jigsound
@jigsound 3 жыл бұрын
@@ShubhamPatil-yt5eg, did you use the specific board I referred to? Unfortunately I only have experience with that particular board, and it was really straightforward to connect - almost exactly as @nenioc187 has described in this video.
@ShubhamPatil-yt5eg
@ShubhamPatil-yt5eg 3 жыл бұрын
@@jigsound yeah I hv used PCF8574 only, but unsuccessful
@Jonbe88
@Jonbe88 4 жыл бұрын
Ich suche nach dem coding für zwei module.
@Pascal_Tesla
@Pascal_Tesla 4 жыл бұрын
Warum ist das Video in Englisch wenn Titel und Beschreibung auf deutshc sind?
@nenioc187
@nenioc187 4 жыл бұрын
Der Titel des Videos lautet "Analog extender for ESP-8266 and Arduino" (das ist Englisch). Ich habe mir die Mühe gemacht, das Video zusätzlich mit deutschem Untertitel, Beschreibung und Titel zu versehen. Gern geschehen!
@Pascal_Tesla
@Pascal_Tesla 4 жыл бұрын
@@nenioc187 Hmm interessant. Dann übersetzt das KZbin anscheinend automatisch (Da bei mir der Titel auf deutsch angezeigt wird). Trotrzdem danke für das Vudei und die Übersetzung.
@nenioc187
@nenioc187 4 жыл бұрын
Ja. Wenn die Standard-Einstellung bei dir im YT-Konto Deutsch ist, wird automatisch der dt. Titel und die dt. Beschreibung angezeigt. Fände es auch besser, wenn man das besser erkennen könnte.
@Lifehy
@Lifehy 5 жыл бұрын
do i need aurdino code for this?
@matsonnerby
@matsonnerby 7 жыл бұрын
Thanks for sharing your experiences with this board. But I don't understand how you can use 5 ads1115 boards. You have 4 pins and 4 addresses to choose between 4*4 = 16. How would you connect the fifth board ?
@nenioc187
@nenioc187 7 жыл бұрын
Plus the one address, when you don't connect the address-pin ;-)
@floree1230
@floree1230 6 жыл бұрын
i have an arduino mega, can i use it to extend my analog pins? i don't wanna buy the extender and just use what I already have but I don't know how I'd connect the two.
@nenioc187
@nenioc187 6 жыл бұрын
Well, you can't just 'use' the pins. But you can read the values with the Mega and send it to the ESP through a serial connection. But you'll have to write your own protocol to send and receive the data. For example, you could use a CSV-styled type: 342,563,1023,0 For analog 0 to 4
@floree1230
@floree1230 6 жыл бұрын
let me rephrase my question. my code is on the arduino mega and all I wanted is to send the data to my wifi module so then I can use the wifimod to send data to a server.
@floree1230
@floree1230 6 жыл бұрын
nenioc187 its possible right? I can directly use the same variables to display the data to the server?
@nenioc187
@nenioc187 6 жыл бұрын
If your code is on the Mega and you're using the WIFI-module to send the data to the server... I don't see any problems there ;-)
@floree1230
@floree1230 6 жыл бұрын
nenioc187 okay.thanks! I'm just confused because I saw posts where people are disagreeing in using node mcu with mega. 😊
@axelrei96
@axelrei96 6 жыл бұрын
sir, can you make a video about monitoring current, with sct 013 also with IoT, thank you..
@nenioc187
@nenioc187 6 жыл бұрын
That's already on my bucket list.
@juanarman7336
@juanarman7336 5 жыл бұрын
1151:8:14: error: 'D1' was not declared in this scope Wire.begin(D1, D2); ^ 1151:8:18: error: 'D2' was not declared in this scope Wire.begin(D1, D2); ^ exit status 1 'D1' was not declared in this scope
@nenioc187
@nenioc187 5 жыл бұрын
The D1-D12 variables are defined in the ESP8266WiFi library. so you have to include this one first, or use the "real" GPIO-adresses.
@4189harsh
@4189harsh 6 жыл бұрын
in serial i shown analog 1 value is -1 .
@sujaybasak3780
@sujaybasak3780 7 жыл бұрын
how to do this using arduino uno?
@robotynokia
@robotynokia 7 жыл бұрын
I am a great Fan of your videos, especially 8266. Would you please, do some videos on interfacing CCTV cams with 8266, so it can stream videos. One more project would be play from 8266 12E, internal 4M memory mp3 or wav files without using external active components. (No TF cards, and serial players) Any help would be welcome..
@nenioc187
@nenioc187 7 жыл бұрын
You're thinking big!
@robotynokia
@robotynokia 7 жыл бұрын
Hope you can help
@gabriele7361
@gabriele7361 7 жыл бұрын
An analog multiplexer can be a solution
@nenioc187
@nenioc187 7 жыл бұрын
You are right, indeed. I'll could use a multiplexer, like the CD4051 (I will make a video about it someday). But I'll need 3 digital pins for it to operate. With this, I need only I2C pins, that I can reuse for other sensors.
@waweyonor6052
@waweyonor6052 5 жыл бұрын
GREAT Video. can you show me your Circuit diagram ?
@nenioc187
@nenioc187 5 жыл бұрын
Follow the link to the project page in the description.
@waweyonor6052
@waweyonor6052 5 жыл бұрын
@@nenioc187 So if i can use the 4 analog pins, can i use it to read 4 sensors too ?
@amit8932
@amit8932 6 жыл бұрын
Can i get the code?
@nenioc187
@nenioc187 6 жыл бұрын
There are examples delivered with the Library github.com/adafruit/Adafruit_ADS1X15
@russellwalker8702
@russellwalker8702 3 жыл бұрын
no wifi ???
@cix19501
@cix19501 7 жыл бұрын
Great video! Thank you!
@avejst
@avejst 7 жыл бұрын
Thanks for sharing this👍😀
@tatangtea
@tatangtea 5 жыл бұрын
Great video! Thx for sharing ...
@apollorobb
@apollorobb 2 жыл бұрын
You need to look it up again its called an analog to digital convertor
@axelrei96
@axelrei96 6 жыл бұрын
Great video sir ...
@circuithijacker
@circuithijacker 7 жыл бұрын
Wonderful!
@suhaimiannuar6008
@suhaimiannuar6008 6 жыл бұрын
thank you
@suhaimiannuar6008
@suhaimiannuar6008 6 жыл бұрын
i did an experiment, but without any sensor attached to ADS1115. then, i plot the graph, what i saw is a sinusoidal graph, with average of 31XX. i dont have anything in mind yet, but i think it is some kind of noise. i also do not know what value it should show. thank you again. i will continue my study.
@thisisyourcaptainspeaking2259
@thisisyourcaptainspeaking2259 4 жыл бұрын
Too bad he had lost the little thing! ;)
@vladbabii9025
@vladbabii9025 6 жыл бұрын
Great video! Thanks!
@anisaqais9331
@anisaqais9331 5 жыл бұрын
Thank you
TUTORIAL: How to / About the ADS1115 External 16 Bit ADC - Part 2
16:25
Antony Cartwright (Electronics & Code)
Рет қаралды 68 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Arduino Multiplexor - MUX INPUTS & OUTPUTS - ANALOG and PWM
13:21
Electronoobs
Рет қаралды 113 М.
Coolest motion detection sensor ever!
7:35
nenioc187
Рет қаралды 221 М.
We connect an external ADC, ADS1015 (ADS1115). 4 analog inputs!
11:40
ESP8266 + Arduino + database - Control Anything from Anywhere
13:51
Electronoobs
Рет қаралды 644 М.
ADS1115 16 Bit ADC Module with Arduino
12:08
Gadget Reboot
Рет қаралды 53 М.
PCF8574 GPIO Extender - With Arduino and NodeMCU
11:30
Crazy Couple DIY
Рет қаралды 76 М.
Arduino, ADS1115 16-Bit ADC with I2C Bus and Adafruit Library - The Details
41:51