• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 Analog channel

Q&A Forum › Category: ESP32 › ESP32 Analog channel
0 Vote Up Vote Down
Lee kiha asked 2 years ago

I am testing to get data from 3 FSR sensors that are connected on ADC1 pins, 34 ~ 39. But I can get data from one sensor that is connected on No. 34 pin.
Two FSR sensor that are connected on the other pins(35,36,37,38,39) are not work.
So I want to know ESP32 can be used just one ADC pin at same time.
 
Please reply me sooner

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
I think you can use multiple ADC pins at the same time.
Try using a pin from ADC2 for one of the other sensors and see if that works…
 
How are you reading the sensors in the code?
 
Regards,
Sara

0 Vote Up Vote Down
Lee kiha answered 2 years ago

I use your code “ESP32 Data Logging to firebase realtime database” you made. Instead of BME280 sensor, I connected 3 FSR sensors on ADC1 pin(34, 35, 36). But only no. 34 pin works, the other does not work exactly even if same circuit.
Due to I use wifi, so I can not use ADC2.
 
 

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Ok.
But how are you defining the sensors on your code?
Each sensor object needs to have a different name.
Can you show me the lines of code where you define the sensors?
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.