In this article we will introduce you to the JavaScript Blocks Editor for the micro:bit, we will create some simple examples for the micro:bit. The blocks editor makes it incredibly easy to create simple examples with no coding, you can also switch to Javascript and see the code version of the block examples which you create.
A common question which crops up is should I choose an Arduino uno or nano for my projects First of all lets look at the classic Arduino Uno The Arduino Uno The Arduino UNO is the most famous of all of the Arduino boards.The Arduino UNO has 6 analog inputs and 14 digital I/O where 6 of them are PWM outputs. It uses a ATmega328 processor with 32kB flash memory. The clock speed of the Arduino UNO is 16Mhz and its size is 68.6mm x 53.3mm. One of the big positives with the Arduino Uno is that there are masses of shields that…
A random dice example for a codebug Code Python # To run this code on CodeBug, visit: # # http://www.codebug.org.uk/learn/activity/66/tethering-codebug-with-python/#step585 # import codebug_tether from codebug_tether import (IO_DIGITAL_OUTPUT, IO_DIGITAL_INPUT, IO_PWM_OUTPUT, IO_ANALOG_INPUT) import random from codebug_tether.sprites import Sprite random_number = None codebug = codebug_tether.CodeBug() codebug.set_leg_io(0, IO_DIGITAL_INPUT); codebug.set_leg_io(1, IO_DIGITAL_INPUT); codebug.set_leg_io(2,…
In this example we will display some of the scrolling text examples on a codebug, these are easy to create Code Python # To run this code on CodeBug, visit: # # http://www.codebug.org.uk/learn/activity/66/tethering-codebug-with-python/#step585 # import codebug_tether from codebug_tether import (IO_DIGITAL_OUTPUT, IO_DIGITAL_INPUT, IO_PWM_OUTPUT, IO_ANALOG_INPUT) from codebug_tether.sprites import StringSprite codebug = codebug_tether.CodeBug() codebug.set_leg_io(0, IO_DIGITAL_INPUT); codebug.set_leg_io(1, IO_DIGITAL_INPUT);…
Lets press a button and then display a happy face with button A pressed and a sad face if button B is pressed Code Python Code # To run this code on CodeBug, visit: # # http://www.codebug.org.uk/learn/activity/66/tethering-codebug-with-python/#step585 # import codebug_tether from codebug_tether import (IO_DIGITAL_OUTPUT, IO_DIGITAL_INPUT, IO_PWM_OUTPUT, IO_ANALOG_INPUT) from codebug_tether.sprites import Sprite display = None display_1 = None codebug = codebug_tether.CodeBug() codebug.set_leg_io(0, IO_DIGITAL_INPUT);…
This is magic 8 ball running on a codebug CodeBug™ is a fun, engaging, entry level introduction to simple programming and electronic concepts to anyone, at any age. It is easy to program using the online interface, which features colourful drag and drop blocks, an in-browser emulator and engaging community features. It enables you to create your own games, clothes, robots or whatever other inventions you have in mind. Plugs onto Raspberry Pi GPIO as an add-on Starting point for Internet of Things devices Versatile I/O…
Bitcoin Price Ticker
AM2302 capacitive humidity sensing digital temperature and humidity module is one that contains the compound has been calibrated digital signal output of the temperature and humidity sensors
The Honeywell HMC5983 is a temperature compensated three-axis integrated circuit magnetometer. This surface-mount, multi-chip module is designed for low-field magnetic sensing for applications such as automotive and personal navigation, vehicle detection, and pointing.
In this example we will connect a GA1A12S202 Log-Scale Analog Light Sensor to an Espruino