all years
202620242023202220212020201920182017201620152014
2211152313307215210213462
newer 2 / 2

ESP based robots | Motors

2021-06-21 16:21:32

I have modified regular nylon servos and noticed that the variable resistor from many tutorials have changed from an insert knob to a fixed metal knob. You have to drill into the gears with a 1.5mm drill and now the gear has too much play and the gears block because of the play the gears grind at each other in an angle. So the sensible idea here was to make little M1.5 spacers / washer from LED / resistor legs.

This is not something you want to repeat for all the servos of your robot army! So just buy continuous servos and be happy that you saved an hour by paying a dollar more!

Since the knob rod is fixed, it's tough to even remove the resistor from the controller - so I just soldered directly to the motor and ended up with a geared 6V motor. You can buy these on your own, too! Look for 6V N20 motors. 

ESP based robots | some specs

2021-06-21 16:11:05

The ESP32 cam board features an ASM1117-3.3V regulator. This regulator allows for 12V input voltage, but also has a dropout voltage of 1V. With only one cell this would technically not even work, as the 3.3V + 1V means we're already above 4.2V of the charged cell. The ASM1117 works well with 5V though, so boosting the voltage might seem feasible.

http://www.advanced-monolithic.com/pdf/ds1117.pdf [PDF]

Let's just say you want 600mA from the 5V source you've just boosted, or 3W. With a charged battery (4.2V) and let's say a perfect, lossless converter you would draw current at 712mA. Looking at a voltage of 3.2V this would mean pulling 938mA.

With two or four servos/motors (stall current needs to be measured), an LED that takes 130mA and an ESP32 with Camera coming in at 180mA - this setup can brownout quickly.

With two cells I hope to be able to power the servos at 6V. I want to later verify, that a 2s cell at 450mAh should hold up longer than a single cell battery at 900mAh. 

burning firmware onto an ST-Link to burn firmware onto anything else

2021-06-07 20:37:26

at least I'm trying to find that out. The clones from aliexpress are supposed to be only able to program st chips. But I want to use it to program some SAMD-21 chips. Never done that as well. So this is a link drop first. Figuring it out for MAC OS.

install open-OCD via homebrew

for unlocking the stm for new firmware go here

https://hackaday.io/project/162597-st-link-clone-repurposing/log/156668-programming

install new firmware called cmsis-dap

https://mvdlande.wordpress.com/2015/10/05/cmsis-dap-on-a-cheap-st-link-v2-mini-adapter/

get this file

https://raw.githubusercontent.com/x893/CMSIS-DAP/master/Firmware/STM32/hex/CMSIS-DAP-STLINK21.hex

install with this line

openocd -f interface/stlink.cfg -f target/stm32f1x.cfg -c "init" -c "halt" \

    -c "flash write_image ./CMSIS-DAP-STLINK21.hex" -c "shutdown"


doing this to flash arturos latest keyboard firmware, had to install arm gcc first. Brew doesn't work as it's not trusted. Downloading here helped.

https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads

to compile arturos fine firmware, you need to add the ARM stuff to your path, otherwise you compile and wonder why he wont find "gcc-arm-none-eabi" again. 

export PATH="$PATH:/Applications/ARM/bin/"
newer 2 / 2