Instructions
Table Of Contents
- Introduction
- Parts
- Using Alligator Clips
- Solar Board Reference
- Project 1 – Sun Finder
- Project 2 – Garden Light
- Project 3 – Self Charging Cooling Fan
- The BBC micro:bit
- Getting Code to Run on the micro:bit
- Project 4 – Adding an Energy Meter
- Project 5 – Energy Logger
- Connecting Up
- Code for the Energy Logger (MakeCode)
- How it works
- Connecting to Your PC
- Pairing Your micro:bit With MakeCode
- Showing the Device Console Graph
- Capturing Data From a Charge and Discharge Cycle
- Downloading Data
- Getting Data into a Spreadsheet Program
- Analysing the Data
- Graphing the Data
- Results
- Understanding the Data
- Understanding Duty Cycle
- How the Solar Store Works
- Project 6 – Intelligent Cooling Fan
- Troubleshooting
- About the Author
- Learning
- Monk Makes Kits
https://github.com/monkmakes/mb_solar_kit
Click on the CODE button, then on
DOWNLOAD ZIP. The file will download
into your downloads folder.
Unzip the zip file to a folder on your
computer, and you will find all the Python
programs in there. You can open these
directly in the Python web editor as well
as using the Python web editor to convert
the code into a form that will run on the
micro:bit.
Flashing Code to Your micro:bit
Once you have the program code in the correct editor, you need to flash it to the
micro:bit. This copies the code over the USB cable into the flash memory of the
micro:bit, where it then runs
Press the DOWNLOAD button, and drag & drop the .hex file from your downloads
folder onto the MICROBIT drive that appears when you plug in your micro:bit.
If you haven't used the micro:bit before, there are some simple getting started
guides and videos on the Micro:bit Educational Foundation website:
https://microbit.org/get-started/first-steps/set-up/
The above web page also describes a faster direct flashing approach, that you will
find handy when doing the energy logger project.
Page 13