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