Hi,
I'm a rising freshman at Case Western University, and I would like to make an an electronic scooter to get around campus before I move in in about two months (mid august 2023).
I already have a lot of the parts I would need for the project, like motors and motor controllers, among other things. Aside from a well functioning and customized escooter, I would also like to expand my engineering skills with this project. I would like to improve my PCB design, power electronics, and general EE skills. I also would like to learn about steering mechanics.
There are a few specific features that I really could use some help deciding on a circuit for, or use some guidance on. I would like to use an ESP32 for the brains of this escooter, although I would be open to suggestions of other microcontrollers.
1. Telemetry. I would like to measure battery voltage, battery current consumption, motor current consumption, duration, user inputs, and motor control outputs.
a. For each trip, from when it is turned on to when it is next turned off, I would like to record a csv file with each entry representing these measurements at a point in time. I would like to just sample all of these things at a rate of 20hz, and have the file saved to an SD card. I could use some recommendations for how to best interface between an SD card and ESP32.
b. For measuring battery voltage, a simple resistor voltage divider to the ADC of the ESP32 should be reliable and accurate, right? Or would something else be better, like possibly adding a capacitor to smooth out the signal or something?
c. For motor and battery current consumption, I would like to use a low resistance current shunt. How could I reliably amplify/read this low voltage signal so that I can read it from the ESP32? Is there an IC that you would recommend for this? And is there another method of measuring current that would be preferable here?
d. I could also use some recommendations for date/time modules that will reliably keep going even after it's been powered off for a while.
e. is there a cheap temperature sensing IC so that I can make sure the internal electronics aren't getting to toasty?
f. is there a relatively cheap IMU (under $10) people can recommend?
2. Electronic breaking. I would like to have electronic breaking instead of mechanical breaks, but I am not sure the best way to do this. Regenerative breaking seems like a lot of effort for not a lot of extra battery life, but I still want electronic breaking. What would people recommend for a circuit to do this? Would just a mosfet with a heat sink and low value resistor across the motors (brushed DC motors) work well? Or could I just reverse the motor direction at a lower power to get a breaking effect?
3. Battery protection circuit. I have a high current latching relay on hand. To properly protect the lipo, does a series fuse and latching relay that shuts off when undervoltage is detected sound good? Or would you recommend a solid state circuit, for overcurrent and undervoltage protection here?
4. Satisfying switches. If anyone has recommendations for knobs, buttons, or paddle switches that are both satisfying and durable, while relatively inexpensive, please let me know.
5. PCB design. With everyone's recommendations for different parts, and my own research, I would like to design a PCB to do all this and interface with all the scooter components not on the PCB. When I get to this point, I would greatly appreciate feedback before I actually order the PCB made because I am new to PCB design and I don't want to waste money because of a dumb mistake.
I know I'm asking for help on a lot of different things, so useful suggestions for anything will be greatly appreciated. Thank you,
Simon
I'm a rising freshman at Case Western University, and I would like to make an an electronic scooter to get around campus before I move in in about two months (mid august 2023).
I already have a lot of the parts I would need for the project, like motors and motor controllers, among other things. Aside from a well functioning and customized escooter, I would also like to expand my engineering skills with this project. I would like to improve my PCB design, power electronics, and general EE skills. I also would like to learn about steering mechanics.
There are a few specific features that I really could use some help deciding on a circuit for, or use some guidance on. I would like to use an ESP32 for the brains of this escooter, although I would be open to suggestions of other microcontrollers.
1. Telemetry. I would like to measure battery voltage, battery current consumption, motor current consumption, duration, user inputs, and motor control outputs.
a. For each trip, from when it is turned on to when it is next turned off, I would like to record a csv file with each entry representing these measurements at a point in time. I would like to just sample all of these things at a rate of 20hz, and have the file saved to an SD card. I could use some recommendations for how to best interface between an SD card and ESP32.
b. For measuring battery voltage, a simple resistor voltage divider to the ADC of the ESP32 should be reliable and accurate, right? Or would something else be better, like possibly adding a capacitor to smooth out the signal or something?
c. For motor and battery current consumption, I would like to use a low resistance current shunt. How could I reliably amplify/read this low voltage signal so that I can read it from the ESP32? Is there an IC that you would recommend for this? And is there another method of measuring current that would be preferable here?
d. I could also use some recommendations for date/time modules that will reliably keep going even after it's been powered off for a while.
e. is there a cheap temperature sensing IC so that I can make sure the internal electronics aren't getting to toasty?
f. is there a relatively cheap IMU (under $10) people can recommend?
2. Electronic breaking. I would like to have electronic breaking instead of mechanical breaks, but I am not sure the best way to do this. Regenerative breaking seems like a lot of effort for not a lot of extra battery life, but I still want electronic breaking. What would people recommend for a circuit to do this? Would just a mosfet with a heat sink and low value resistor across the motors (brushed DC motors) work well? Or could I just reverse the motor direction at a lower power to get a breaking effect?
3. Battery protection circuit. I have a high current latching relay on hand. To properly protect the lipo, does a series fuse and latching relay that shuts off when undervoltage is detected sound good? Or would you recommend a solid state circuit, for overcurrent and undervoltage protection here?
4. Satisfying switches. If anyone has recommendations for knobs, buttons, or paddle switches that are both satisfying and durable, while relatively inexpensive, please let me know.
5. PCB design. With everyone's recommendations for different parts, and my own research, I would like to design a PCB to do all this and interface with all the scooter components not on the PCB. When I get to this point, I would greatly appreciate feedback before I actually order the PCB made because I am new to PCB design and I don't want to waste money because of a dumb mistake.
I know I'm asking for help on a lot of different things, so useful suggestions for anything will be greatly appreciated. Thank you,
Simon