-
Setup board environment
03/29/2020 at 22:00 • 0 commentsRequirements:
Arduino AVR Boards version 1.6.22 and above
(Tools->Boards->Boards Manager)
<>Install MiniCore Board<>
https://github.com/MCUdude/MiniCore#write-to-own-flash
This installation method requires Arduino IDE version 1.8.6 or greater.
- Open the Arduino IDE.
- Open the File > Preferences menu item.
- Enter the following URL in Additional Boards Manager URLs:
https://mcudude.github.io/MiniCore/package_MCUdude_MiniCore_index.json
- Open the Tools > Board > Boards Manager... menu item.
- Search for MiniCore.
- Click Install.
- After installation is complete close the Boards Manager window.
- Selecting the right board:
- Open the Tools > Board > MiniCore: ATmega328
- Tools > Variant > 328PB
<>Install Libraries<>
From Arduino Library Manager:
- ElapsedMillis
- SoftPWM
RadioHead Library- Download this Link and put into /Documents/Arduino/Libraries. This is the reference site.
Low Power Labs
- Follow steps here
-
Rev 1 done! Next​
03/24/2020 at 22:49 • 0 commentsOne circuit has charlieplexed LEDs
One circuit has not charlieplexed LEDs
Using SOT-5 power supply.
Final rev uses Atmega328P, not "PB"
Test capacitive touch sensor
Send extra battery holders
-
Battery life tests
02/29/2020 at 17:01 • 4 commentsThe setup:
Measure battery voltage (but use benchtop power supply so I can adjust it quickly), check corresponding analog measurement, and check voltage coming out of v-boost (how long will it boost to 3.3V). Analog measurement is sent over the radio to another board which is plugged into the serial monitor. The board taking the measurements is only on benchtop supply power.
The transmitting board has zero LEDs on except for blinking with TX.
Test 1:
Battery
1.5
1.4
1.3
1.2
1.1
1.0
0.9Analog
712
708
701
697
687
676
too lowBoost
3.3
3.3
3.3
3.262
3.261
2.8Test 2:
Send data from a full battery and measure how long it lasts.
8 LEDS full on. Unfortunately they are yellow-white LEDs from the floor -shrug, no clue what they are- we can call them 20 mA.
UPDATE: it lasted 2 hours.
Battery (volts)
1.5 (fresh battery)
1.1 (doesn't comm)Analog
708 (timestamp 16:15:37)
675 (timestamp 18:15:12)TODO:
-Figure out conflict between Radiohead library interrupts and Atmega 328 native.
-Add interrupt 0 to code (interrupt 1 won't work with Radiohead)
-Look at battery datasheet, make a table with a couple of different ones.
-Figure out how to program board via UART (reset does not pull down, not sure why)
-
Last month of 2019
12/30/2019 at 19:26 • 0 commentsDecember 21: ordered parts, stencils, PCBs.