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
THE BBC MICRO:BIT
The next projects will use the BBC micro:bit to control the Solar Store. This will
allow you to build more complex projects where the energy harvesting and the
energy use is further separated into distinct phases, and your micro:bit can both
monitor the stored energy as well as turn things on and off intelligently.
USB
(connect to PC/Mac)
|
| | | |
GETTING CODE TO RUN ON THE MICRO:BIT
Entering Code by Hand
Entering code by hand is a good way to learn more about coding, as you will learn
how to find and fix mistakes that you make. If you want to enter code directly,
choose the correct editor for the code you are entering.
MakeCode (block coding) can be accessed at https://makecode.microbit.org
MicroPython (text coding) can be accessed at https://python.microbit.org
Copying the Code
If you are eager to get building, all of the code is pre-written and downloadable.
For the MakeCode (blocks) code, each program listing has a link that you can click
on (or type in) to open the code directly in the MakeCode web editor.
For the MicroPython code, you can access the code from our github pages for this
project. You don't need a login account in order to access github.
Page 12