**My DIY VEC Project: A Story of Trial and Error**
I recently attempted to build my own Version-Controlled Electric Scooter (VEC) project, which I'll be documenting in this article. The total cost for the components was around $86.70 per piece, with some items being sourced from LCSC and others from Aliexpress.
**The Cost Breakdown**
While the Mauser component from LCSC costed me €99, it was available at a much cheaper price of $12 on the same platform. However, I had to visit Aliexpress to purchase 20 MOSFETs for $49, as they were not readily available in both shops. This means that if we break down the costs for one VEC, we would get a value of around $86.70.
**The Assembly Process**
Initially, I thought assembling the components would be easy, but once I saw all the bags with parts, I quickly changed my mind. To make the assembly process easier, I printed out the component overview on the PCB and crossed off the components as soon as I was done soldering them to keep track of what still needed to be soldered to the boards.
**Soldering Techniques**
For some of the smaller components, such as the 603 resistors and capacitors, I used my hands and a soldering iron method. This means that I added a bit of solder to one side so that the component would stay in place, and then added more solder to the other sides. Although this might not look pretty, these solder joints should still work fine.
For the USB port, power inductor, MOSFET driver IC, and main microcontroller, I used a combination of heat gun and soldering iron techniques. However, as soon as I moved on to the MOSFET driver IC and the main microcontroller, things didn't quite go as planned with the heat gun.
**Soldering the MOSFETs**
After using my soldering iron technique for the aforementioned components, I finally managed to solder the three MOSFETs to each side of the PCB. I also connected the oscillator near the microcontroller and completed both VEC units.
**Adding Power Cables and Testing**
Next, I added twelve AWG power cables to them. In comparison, a pre-made VEC unit would have cost around $48 million. My first self-made VEC unit produced around 74 milliamps, while the second one even managed to short-circuit a resistor after a few seconds.
**Troubleshooting and Fixing**
After doing some troubleshooting, I found out that the resistor was connected between VCC and ground due to a short between two pins of the MOSFET driver. Once fixed, the current output for both VEC units returned to around 75 milliamps.
**Programming the Microcontrollers**
To program the microcontrollers, I added six-pin sockets next to them, which were then connected to an ST-Link programmer via female headers and wires. After plugging in the programmer and connecting it to my computer, I used the SC Link software to upload the bootloader and firmware successfully.
**Powering On and Recognizing the Device**
Finally, I powered on both VEC units through their mini USB ports and connected them to my computer, which unfortunately did not recognize either device. After six hours of troubleshooting, I had to give up due to time budget problems.
**Conclusion**
In conclusion, my DIY VEC project cost around $86.70 per piece and took approximately three hours to assemble. Success is definitely not always guaranteed when working with complex circuits, which was evident in this case.
If you're interested in building your own VEC unit or have any questions about the process, feel free to ask.