[ad_1]
For Lukas Okay, who goes by the identify carrotIndustries on GitHub, biking was extremely necessary, and provided that he bikes in each the day and night, having a motorcycle pc that was backlit was very important. Nevertheless, this offered a problem by way of energy supply since disposable batteries would have to be continuously changed whereas rechargeable ones must be topped up far too usually. Due to this, he determined to create his personal system that might be powered from merely transferring the pedals through an accompanying dynamo, which he calls the Cyclotron mini.
Digital parts
On the heart of the system is an MSP430FR4133 microcontroller which has an ample variety of pins for studying sensor knowledge and controlling numerous different peripherals. As a way to see info similar to distance, velocity, and altitude, a single 1×8 character LCD was added to the entrance in addition to three buttons for gathering consumer enter. Maybe crucial side of this challenge, the ability circuitry, consists of a dynamo which outputs AC voltage. This present is then rectified by a collection of diodes and used to energy the remainder of the circuitry whereas additionally charging a 1.5F supercapacitor in case there’s a momentary lower in present. With this setup, Lukas was capable of obtain an idle present consumption of simply 150uA with out the LCD’s backlight being on.
Creating the circuit board
The PCB Lukas got here up with was pretty simple. Energy administration circuitry is relegated to 1 aspect on the board whereas the microcontroller, barometer, and ambient gentle sensor are on the alternative aspect. It was assembled utilizing solder paste, a stencil, a gradual hand, and loads of persistence.
Figuring out cycles
As a result of the dynamo outputs a sign every time it completes a rotation, Lukas determined to attach the 2 output pins together with a number of collection resistors and clamping diodes to digital enter pins on the MCU. The firmware configures the microcontroller to run a 1024Hz timer which checks the state of the 2 pins and increments an inner counter on every rising edge. After a second has passed by, this counter is learn and used to calculate the gap, max/common/present velocity, and complete time in movement.
Altitude measurement and different options
In addition to the information talked about beforehand, the bike pc has the flexibility to present the consumer altitude info from the onboard barometer. It additionally makes use of its ambient gentle sensor to robotically toggle the LCD’s backlight on or off relying on how darkish it’s exterior. Lastly, the system may be programmed externally by urgent a set of spring-loaded pins to the underside of the enclosure.
Fabricating an enclosure
The case for the Cyclotron mini needed to be each gentle and powerful, so Lukas printed the enclosure out of PLA filament and held collectively the varied items with 4 M2 screws. It mounted to his bike’s handlebars with a clamp produced from versatile TPU filament for higher grip.
To see the design information and code used to make this challenge, you may go to the repository for the Cyclotron mini right here on GitHub.
[ad_2]
