python

Solar Car Charging Dance In Software

Paul Goulbourn
After thinking about how to use the solar power my home generates in the most efficient way I realised that this is a generic problem. Effectively we have three types of devices in play : Generation Sources. eg. my solar panels, the house battery, the grid. Switchable Consuming Devices. eg. My car, a heat pump, the house battery. The load generated by these devices can be turned on/off. Background Load. The overall usage at the site.

Maix2 Dock Camera Test

Paul Goulbourn
You can write a small amount of python to test that the image you have created works correctly. The following is a tiny python script that takes an image from the camera and displays it on the built-in screen. Connect to the device via the serial link or over ssh. Create a test.py file with the #!/usr/bin/env python from maix import display, camera while True: display.show(camera.capture()) Make the script executable via