| Visit our Halloween space and find out how to win one of two Cel Robox 3D Printers. There are two ways to win:
| Share your Project and Win |
#ShareTheScare Competition | ||
The Ben Heck Show Episodes |
In order to impress my granddaughter with the importance of computers, I decided to enhance the pumpkin she drew on this morning. While she is napping, I carved the pumpkin and installed a Codebug SoC project that I completed (http://www.codebug.org.uk/create/codebug/13991/acapulco-gold/ ). Blockly programming is fairly simple for old-enough-to-concentrate kids (not my granddaughter yet!) using the Blockly language and they can achieve quite a bit (future engineers!). I do suggest checking out the aforementioned web domain.
Here is the Codebug next to my finger for size comparison:
Then,
- I downloaded my program (acapulco-gold.cbg)
- Loaded the Codebug with the program (copy + paste from Downloads folder to popped-up "codebug" folder - see web site for precise instructions)
- Installed the CR2032 battery (so to run disconnected from USB)
- Inserted the Codebug into the case I ordered to protect it from the elements (E.g. body sweat, pumpkin drippings)
Picture:
Just press button "A" (upper left) to start program and insert into pumpkin:
My substandard video of the effect indoors (it's not nighttime yet!):
Blockly source code:
Equivalent Python (I've run it. Yes, it functions just as well as Blockly.):
Anyone can develop in Python or Javascript with Codebug. One bit of warning: The Python-related preparation notes are incorrect as stated. The following is a more useful set of instructions for preparing to develop in Python:
sudo apt-get update sudo apt-get upgrade sudo apt-get install python3 ### Manually, download https://bootstrap.pypa.io/get-pip.py to get pip3 source code. sudo python3 get-pip.py sudo pip3 install codebug_tether sudo apt-get install python3-serial
If you then do the following, you should see no errors:
python3 >>> import codebug_tether >>> codebug = codebug_tether.CodeBug() >>> codebug.set_pixel(2, 2, 1)
Useful documentation:
CodeBug – Transfering to CodeBug
CodeBug – Activity Raspberry Pi Controlled Codebug With I2C
CodeBug – Search (see my set-up corrections above)
Top Comments