Search found 9 matches

by Tranzmetro
Thu Jan 19, 2023 9:54 pm
Forum: ESP RainMaker
Topic: ESP32 and app status gets out of sync
Replies: 2
Views: 6284

Re: ESP32 and app status gets out of sync

I solved the problem by taking the switching statements out of the callback. I set a flag in the callback then change the status in the main loop.
by Tranzmetro
Thu Jan 12, 2023 3:29 am
Forum: ESP RainMaker
Topic: ESP32 and app status gets out of sync
Replies: 2
Views: 6284

ESP32 and app status gets out of sync

I am having an issue with my esp32 and the app status getting out of sync. I am setting up a button to open my garage door. This needs to be a momentary button but I can't find one in Rainmaker so I am simulating it by turning a switch on for a few seconds then turning it off. This works, press the ...
by Tranzmetro
Mon Mar 16, 2020 2:18 am
Forum: Hardware
Topic: Help with random deep sleep pin voltages
Replies: 0
Views: 3444

Help with random deep sleep pin voltages

I put my esp32 into deep sleep to save energy. Attached to pin 21 I have the anode of the led of an opto isolator and a 10k resistor to ground. The cathode of the led is connected to ground through a 330 ohm resistor. When the esp32 is awake I can make pin 21 go high of low as I wish. When the esp32...
by Tranzmetro
Sun Sep 29, 2019 7:53 pm
Forum: ESP32 Arduino
Topic: #include question - not reading file
Replies: 1
Views: 2801

Re: #include question - not reading file

I neglected to add that I'm using PlatformIO on Microsoft Visual Studio Code.
by Tranzmetro
Sun Sep 29, 2019 7:40 pm
Forum: ESP32 Arduino
Topic: #include question - not reading file
Replies: 1
Views: 2801

#include question - not reading file

I have a newbie question. I have a file with code in it called test.txt. If I put this in the src directory and put an include statement in the .cpp file, it is compiled. If I put it in the include directory it compiles. If I put it in an external directory and put a search line in the c_cpp_propert...
by Tranzmetro
Mon Aug 05, 2019 10:35 pm
Forum: Hardware
Topic: Multi voltage input with custom level detection
Replies: 5
Views: 6694

Re: Multi voltage input with custom level detection

Are you not able to do this in software on the esp32? Using your scaled down voltage, if the input is below reading*the multiplier * lower threshold treat it as 0 and if it above reading*the multiplier * higher threshold treat it as 1. Using a resistor divider and calculating it in software is much ...
by Tranzmetro
Mon Aug 05, 2019 10:21 pm
Forum: Hardware
Topic: Measure LiPol battery level
Replies: 6
Views: 35003

Re: Measure LiPol battery level

Your voltage divider calculation is wrong. If you have 2 resistors as a voltage divider, call the top resister R1 (the one that is connected to the voltage to be measured) and call the bottom resister R2. Use R1/(R1+R2). This will give you the correct divisor, or 1/divisor to give you the multiplier.
by Tranzmetro
Sun Jan 28, 2018 4:01 am
Forum: General Discussion
Topic: PlatformIO support for ESP32-IDF - Requires some improvement
Replies: 3
Views: 8490

Re: PlatformIO support for ESP32-IDF - Requires some improvement

I've been running Platformio with Visual Studio Code for some time. The Platformio documentation was accurate and complete, and I've never had a problem with compiling or uploading. But you do need to follow the instructions, particularly about NOT installing Arduino Core, and selecting Platformio I...
by Tranzmetro
Fri Jan 05, 2018 1:47 am
Forum: ESP32 Arduino
Topic: How do you know when sntp_int returns andd if it has a valid date/time?
Replies: 0
Views: 2605

How do you know when sntp_int returns andd if it has a valid date/time?

All examples I have seen for using sntp_init use a test on the year to determine if there is a valid date, but what happens if you use sntp_init each day to check the date/time, any difference will likely only be minutes or seconds so any test using the year will say that the date/time will be corre...