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.
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!
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
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.
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.
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 ?
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?
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.
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..
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
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, 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.
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!
@@nenioc187 Hmm interessant. Dann übersetzt das UA-cam anscheinend automatisch (Da bei mir der Titel auf deutsch angezeigt wird). Trotrzdem danke für das Vudei und die Übersetzung.
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.
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.
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
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.
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.
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.
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.
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!
To wire up I2C, you need to use pull-up resistors. It's part of the specification. Great video I must say.
Really really nice. Just planning to get this adc module. Your video showed me the light at the end of the tunnel. Thank you.
Excellent video. This is how any video should look like. Easy to follow from the beginning to the end. Thanks!!!
I really wish there was a NodeMCU board with multiple and better built-in ADCs.
Thanks for sharing this!! I love all your videos and this one especially just saved me on my current project!!
Fantastic, I was looking to use a giroscope sensor with an Esp8266 dev board so the video was perfect for me.
there are better gyroscope boards with builtin I2C, so you don't have to ADC.
Use the GY521 instead - it's a really good low-cost gyroscope+accelerometer, and is I2C enabled.
Thank you for making this video - I have an 8266 that I need to read multiple analogue and this should do the trick :)
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
Thanks for those enthusiastic words. If you like the videos, I'll keep on rolling them out.
This kind of extender is a life-saver!👌
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.
Of course you're right. It happened in the heat of the battle ;-)
That's why I liked the expression analog-extender best :-D
Can i add 2 turbidity sensor with ads1115? I don't have A0 space anymore
Great video! Thank you!
how can i use pulse sensor and LM35 to send data to firebasedatabas. even i don't know multiplexing code
i tried to use ads1115, but the inputs interfere with the other
is there any diffrent configuration pin for additional ADS1115?
For example 0x48 and 0x49
Thanks for sharing this👍😀
Any thoughts on a cheap solution for ESP-01?
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.
Can I still use I2C for an OLED display whilst using this analog extender?
As long as you using another I2C address for the display it shouldn't be a problem.
thank you for sharing this tutorial, but do you have any information about how to use interrupt with ADS1115 ?
Great video! Thx for sharing ...
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 ?
Plus the one address, when you don't connect the address-pin ;-)
i need two analogue pins in esp 8266 but just wanna know that is it work automatically or i will need some coding ?
Great video sir ...
So can I use these analog pins for sensors which draw 5v ?? How?
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?
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.
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..
You're thinking big!
Hope you can help
Can there be power issues with this many (~20) sensors?
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
The D1-D12 variables are defined in the ESP8266WiFi library. so you have to include this one first, or use the "real" GPIO-adresses.
Wonderful!
sir, can you make a video about monitoring current, with sct 013 also with IoT, thank you..
That's already on my bucket list.
when code run, error occur the wire not declared in this scope.
Kindly reply me
GREAT Video. can you show me your Circuit diagram ?
Follow the link to the project page in the description.
@@nenioc187 So if i can use the 4 analog pins, can i use it to read 4 sensors too ?
Hey sir What if we want to extend the digital pins... What if we want more digital pins.. how can we get those?
I've been successful with the PCF8574 IO Expansion Board; it is connected with exactly the same protocol as shown in this video. 😉
- Eero
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.
@@jigsound I tried using PCF GPIO Extender bt it didn't work it would be great if u do a video on it too
@@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.
@@jigsound yeah I hv used PCF8574 only, but unsuccessful
Warum ist das Video in Englisch wenn Titel und Beschreibung auf deutshc sind?
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!
@@nenioc187 Hmm interessant. Dann übersetzt das UA-cam anscheinend automatisch (Da bei mir der Titel auf deutsch angezeigt wird). Trotrzdem danke für das Vudei und die Übersetzung.
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.
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.
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
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.
nenioc187 its possible right? I can directly use the same variables to display the data to the server?
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 ;-)
nenioc187 okay.thanks! I'm just confused because I saw posts where people are disagreeing in using node mcu with mega. 😊
Ich suche nach dem coding für zwei module.
do i need aurdino code for this?
An analog multiplexer can be a solution
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.
no wifi ???
You need to look it up again its called an analog to digital convertor
Thank you
how to do this using arduino uno?
Can i get the code?
There are examples delivered with the Library
github.com/adafruit/Adafruit_ADS1X15
in serial i shown analog 1 value is -1 .
Too bad he had lost the little thing! ;)
Great video! Thanks!
thank you
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.