Analog extender for ESP-8266 and Arduino

Поділитися
Вставка
  • Опубліковано 27 жов 2024

КОМЕНТАРІ • 81

  • @Andreas-gh6is
    @Andreas-gh6is 5 років тому +13

    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 роки тому +1

    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 Рік тому +1

    To wire up I2C, you need to use pull-up resistors. It's part of the specification. Great video I must say.

  • @alphonsesynrem28
    @alphonsesynrem28 6 років тому +2

    Really really nice. Just planning to get this adc module. Your video showed me the light at the end of the tunnel. Thank you.

  • @izemanevobike
    @izemanevobike 5 років тому +2

    Excellent video. This is how any video should look like. Easy to follow from the beginning to the end. Thanks!!!

  • @sledzeppelin
    @sledzeppelin 3 роки тому +1

    I really wish there was a NodeMCU board with multiple and better built-in ADCs.

  • @comicy2
    @comicy2 6 років тому +2

    Thanks for sharing this!! I love all your videos and this one especially just saved me on my current project!!

  • @asiw
    @asiw 7 років тому +3

    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.

  • @squip88
    @squip88 6 років тому +2

    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 років тому +4

    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 років тому +2

      Thanks for those enthusiastic words. If you like the videos, I'll keep on rolling them out.

  • @jigsound
    @jigsound 3 роки тому

    This kind of extender is a life-saver!👌

  • @DAveShillito
    @DAveShillito 7 років тому +3

    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 років тому +2

      Of course you're right. It happened in the heat of the battle ;-)
      That's why I liked the expression analog-extender best :-D

  • @faith-ce5yt
    @faith-ce5yt 6 місяців тому

    Can i add 2 turbidity sensor with ads1115? I don't have A0 space anymore

  • @cix19501
    @cix19501 7 років тому +1

    Great video! Thank you!

  • @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

  • @avejst
    @avejst 7 років тому +2

    Thanks for sharing this👍😀

  • @arkhamangel959
    @arkhamangel959 3 роки тому

    Any thoughts on a cheap solution for ESP-01?

  • @MsToshinori
    @MsToshinori 2 роки тому

    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.

  • @arthurleigh-wood8464
    @arthurleigh-wood8464 3 роки тому

    Can I still use I2C for an OLED display whilst using this analog extender?

    • @nenioc187
      @nenioc187  3 роки тому

      As long as you using another I2C address for the display it shouldn't be a problem.

  • @afdyclinton1315
    @afdyclinton1315 7 років тому

    thank you for sharing this tutorial, but do you have any information about how to use interrupt with ADS1115 ?

  • @tatangtea
    @tatangtea 5 років тому

    Great video! Thx for sharing ...

  • @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 ;-)

  • @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 ?

  • @axelrei96
    @axelrei96 6 років тому +1

    Great video sir ...

  • @TheGermanysucks
    @TheGermanysucks 6 років тому

    So can I use these analog pins for sensors which draw 5v ?? How?

  • @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.

  • @robotynokia
    @robotynokia 7 років тому +1

    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..

  • @lhimo88
    @lhimo88 6 років тому

    Can there be power issues with this many (~20) sensors?

  • @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.

  • @circuithijacker
    @circuithijacker 7 років тому +1

    Wonderful!

  • @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.

  • @binteadam4699
    @binteadam4699 4 роки тому

    when code run, error occur the wire not declared in this scope.

    • @Qhlanas
      @Qhlanas 4 роки тому

      Kindly reply me

  • @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 ?

  • @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

  • @Pascal_Tesla
    @Pascal_Tesla 4 роки тому

    Warum ist das Video in Englisch wenn Titel und Beschreibung auf deutshc sind?

    • @nenioc187
      @nenioc187  4 роки тому +1

      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 UA-cam anscheinend automatisch (Da bei mir der Titel auf deutsch angezeigt wird). Trotrzdem danke für das Vudei und die Übersetzung.

    • @nenioc187
      @nenioc187  4 роки тому +1

      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.

  • @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. 😊

  • @Jonbe88
    @Jonbe88 4 роки тому

    Ich suche nach dem coding für zwei module.

  • @Lifehy
    @Lifehy 5 років тому

    do i need aurdino code for this?

  • @gabriele7361
    @gabriele7361 7 років тому +2

    An analog multiplexer can be a solution

    • @nenioc187
      @nenioc187  7 років тому +1

      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.

  • @russellwalker8702
    @russellwalker8702 3 роки тому

    no wifi ???

  • @apollorobb
    @apollorobb Рік тому

    You need to look it up again its called an analog to digital convertor

  • @anisaqais9331
    @anisaqais9331 4 роки тому

    Thank you

  • @sujaybasak3780
    @sujaybasak3780 6 років тому

    how to do this using arduino uno?

  • @amit8932
    @amit8932 5 років тому

    Can i get the code?

    • @nenioc187
      @nenioc187  5 років тому

      There are examples delivered with the Library
      github.com/adafruit/Adafruit_ADS1X15

  • @4189harsh
    @4189harsh 6 років тому

    in serial i shown analog 1 value is -1 .

  • @thisisyourcaptainspeaking2259
    @thisisyourcaptainspeaking2259 4 роки тому

    Too bad he had lost the little thing! ;)

  • @vladbabii9025
    @vladbabii9025 6 років тому

    Great video! Thanks!

  • @suhaimiannuar6008
    @suhaimiannuar6008 5 років тому

    thank you

    • @suhaimiannuar6008
      @suhaimiannuar6008 5 років тому

      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.