Posts

Showing posts with the label ESP32

Adding an analog feedback tap to a 9g Micro Servo

Image
Internally the servo has a feedback loop that is driven off of a variable resistor.  The resistance value changes as the servo sweeps across its range of motion. This can act as a proxy for the servo's position.  You can buy servos with an extra wire that exposes the voltage across that variable resistor or you can make your own. Or, you can add your own sensing wire to the potentiometer. I have a bunch of the 9g micro servos for various projects.  The one below has an extra green wire coming out of it that is connected to an analog input on this ESP32 C3.  The ESP32 can see  the location of the servo while it is in motion. See the Video on YouTube Sample Program Output The checksweep.py  program in this GitHub repository FreemanSoft ESP Python   The sample MicroPython tester moves a servo from 0 degrees to 180 degrees in steps and then returns to 0 degrees.  It logs the analog value of the potentiometer at the end of every move. It is actually...

Use the Windows Mobile hotspot when your ESP32 C3 will not connect to any of your WIFI SSIDs

Image
I spent two weeks troubleshooting ESP32 C3 network connectivity issues.  They worked a couple of times and then just never connected after that. I changed the firmware, erased nv memory, and tried about 10 different solutions found in the forums.   In the end, the only reliable way to work with those particular ESPs was to create a mobile hotspot on my PC.  That works 100% of the time for me.  This is essentially Internet connection sharing  even if it is only for the local network. Getting the network working was important because the ES32 C3 doesn't support the file share mount for CircuitPython development.  I normally use rshell  for MicroPython work but rshell isn't CircuitPython compatible.  So I really wanted the Web Workflow which requires a working network connection. I farted around with a Seeed XIAO ESP32 C3 that wouldn't connect to the mobile hotspot.   It turns out that tiny device could only see my desktop if I attached the...