Make your Raspberry Pi speak with NodeRED

Pete Scargill has been experimenting with NodeRED for quite some time, mostly in relation to using it as an Internet of Things platform. At the moment, he is using NodeRED as a translator and to trigger speech synthesis. Check out his efforts and work-in-progress here. If you’re into NodeRED and/or alternative programming languages, I recommend subscribing to his blog – it’s informative and always well-written.

FUZE BASIC upgraded to support the Raspberry Pi SenseHAT

Some great news for owners of the FUZE platform. An update has been released that means you can now interface with the Raspberry Pi SenseHAT using the FUZE BASIC language. The following commands have been added:

  • senseRGBcolour – sets the active colour
  • sensePlot – turns on an LED at the specified location
  • senseLine – plots a line of LEDs
  • senseRect – plots a rectangle of LEDs
  • senseScroll – shifts the LED in the specified direction
  • senseCLS – clears the LED matrix
  • SenseGyroX – returns the GyroX value
  • SenseGyroY – as above etc. and same for all below
  • SenseGyroZ, SenseAccelX, SenseAccelY, SenseAccelZ, SenseCompassX, SenseCompassY,
  • SenseCompassZ, SensePressure, SenseHeight, SenseHumidity and SenseTemperature.

You can find instructions on how to download the new version here.

The SenseHAT attaches to the FUZE by way of the interface board which replicates the GPIO pins. You can see it in action in the video below:

New GPIO wrapper library for the Raspberry Pi

Ben Nuttall has been working hard to create a library which will provide a simpler interface to the GPIO pins. The library is called GPIO Zero. At the moment, on the RPi.GPIO library, there are a couple of commands to set things like the pin numbering system that kids are often told to just “enter and forget about”. This library obfuscates these commands to simplify matters. An example is shown below:

from gpiozero import LED
red = LED(2)
red.on()

Ben has built in several add-on boards so far and aims to make it the easiest way to program the GPIO in Python on the Pi. It’s actually a wrapper for the good old RPi.GPIO library, so existing code will still work the same way. You can read documentation and more information on PythonHosted.org as well as instructions on how to install it. Please bear in mind this is a beta so your mileage may vary!