- Microcontroller: Adafruit Trinket - 5v
- Mosfet: FDP8860-ND
- 100%
- 80%
- 60%
- 30%
When switched on the Trinket will drive the mosfet at level 1. Switching off and on again within 10 seconds will advance the Trinket to the next level until it reaches level 4. If turned back on after more than 10 seconds the Trinket will reset to level 1.
- Wire a switch between the Trinket's GND pin and pin 0
- Connect Trinket pin 1 to pin 1 on the mosfet (gate) Optional: you can also add a ~250 Ohm resistor between the mosfet gate and pin 1 to protect the trinket from current spikes when the mosfet turns on.
- Connect pin 2 of the mosfet (drain) to the negative lead of the EO cord
- Connect pin 3 of the mosfet (source) to the negative lead of the battery
- Connect Trinket BAT+ and GND pins to the respective battery leads
- Optional: you can place a 10k ohm pulldown resistor between the gate and ground (or pin 3 on the mosfet) to keep the mosfet gate from floating