Search found 110 matches

by Archibald
Thu May 10, 2018 7:16 pm
Forum: General Discussion
Topic: C++ SPI for Max 31855 Thermocouple Amp
Replies: 28
Views: 30527

Re: C++ SPI for Max 31855 Thermocouple Amp

I suggest you consider the option of driving the chip select (CS) and serial clock (SCK) directly by your code and read the state of the serial data out (SO) after each falling edge of SCK. In other words consider using "bit banging" . You may need to insert some delays to comply with the timing req...
by Archibald
Fri May 04, 2018 12:21 pm
Forum: General Discussion
Topic: What would you like to see in The Next Chip?
Replies: 426
Views: 839361

Re: What would you like to see in The Next Chip?

The ARM toolchain and the ARM software ecosystem are 100 times better then GNU Xtensa. Command line tools are like prehistoric animals. It takes hours to configure the GNU Xtensa toolchain to debug a program. It takes seconds with ARM. They should just improve the software to be more Windows friend...
by Archibald
Thu May 03, 2018 2:40 pm
Forum: General Discussion
Topic: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)
Replies: 35
Views: 51517

Re: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)

THANK YOU @Archibald I'm able to get proper readings. now as you said how can I measure voltage or get information about that voltage associated with each ESP32 ADC converter, as you said it will not be 3.3. and another question the sensor is working on 5 volts but output range is 4.5 so I have to ...
by Archibald
Thu May 03, 2018 1:00 am
Forum: General Discussion
Topic: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)
Replies: 35
Views: 51517

Re: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)

Four people responding to this thread have said that a voltage divider is necessary so the input to the ESP32 never exceeds 3.3V. I have suggested adding an extra resistor to the 3.3V rail in order to avoid the 'dead zone' near zero volts. If the attenuator within the ESP32 is set to 6dB, the workin...
by Archibald
Wed May 02, 2018 11:07 pm
Forum: General Discussion
Topic: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)
Replies: 35
Views: 51517

Re: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)

So just drive 3.3-logic RF mosfet at 3.9V VCC with ESP pin voltages whatever you like. What's the problem @Deouss . . . . . You seem to be misunderstanding the requirement here. The original poster is not trying to drive a voltage. The requirement is to get digital values 0 to 1023 as if using an A...
by Archibald
Tue May 01, 2018 3:32 pm
Forum: General Discussion
Topic: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)
Replies: 35
Views: 51517

Re: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)

I would use a simple amplifier with max 5V output or adjusted to scale between 0-5V output. There's no need for an amplifier. The sensors already have outputs in the range 0V to 5V so the voltage must be a reduced, not amplified, before going into the ESP32. Another way is also to run it again thro...
by Archibald
Sun Apr 29, 2018 11:18 am
Forum: General Discussion
Topic: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)
Replies: 35
Views: 51517

Re: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)

According to documentation here , at 11dB attenuation the full scale voltage is about 3.9V but you must never put more than 3.3V into your ESDP32. So, if you set resolution to 10 bits and put 3.3V into your ESP from your voltage divider, you will not get 1023 digital. You will only get roughly 865. ...
by Archibald
Sat Apr 28, 2018 10:19 am
Forum: General Discussion
Topic: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)
Replies: 35
Views: 51517

Re: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)

Option 1 Set the ADC to 10 bit resolution and attenuation to 6dB. Then carefully adjust the resistors of the divider circuit so 5V input gives 1023 and 0V input gives 0. Look at the graph here under the first section titled "ADC Calibration". You need to carefully adjust the input resistor so with ...
by Archibald
Thu Apr 26, 2018 4:51 pm
Forum: General Discussion
Topic: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)
Replies: 35
Views: 51517

Re: i want to map analog pins on 5volt between 0 to 1023 (10 bit resolution)

You could use both an Arduino and an ESP32, getting the Arduino to transmit data from the Arduino to the ESP32 via SPI or I²C communication. You may need to use voltage dividers or bidirectional level shifters to ensure the ESP32 inputs do not go above 3.3V. For I²C see the options here . And ESP32 ...