Things are hotting up! Josh – one of our Pi-Wars team has created a nice logo for the (Haber)Dasher team. T’would look fine on a T-Shirt.
The week we’ve been mostly thinking about bling + a skin for Dasher! So we took the opportunity to rewire some strings of (3v) Xmas lights to create a flashing/pulsing (PWM) set of lights to bedeck and adorn Dasherbot (video to follow next week).
Whilst coding the bling blink + pulse we took the opportunity to practice remote access of a Pi via SSH + PuTTY.exe, using some spare netbooks. A spare RPi has been configured to act as a local wifi router.
All the coding created by the teams for light blink and pulse has been simply copied from a couple of gpiozero recipes; below
from gpiozero import LED from signal import pause from time import sleep red = LED(3) orange = LED(2) red.blink() sleep(1) # alternates blink of two lights orange.blink() sleep(0.5) # alternates blink of two lights pause()![]()
from gpiozero import PWMLED from signal import pause from time import sleep orange = PWMLED (3) purple = PWMLED (2) purple.pulse () sleep(0.5) # alternates pulse of two lights - slightly! orange.pulse () sleep(1) # alternates pulse of two lights - slightly! pause () GPIO.cleanup() # clean up GPIO on CTRL+C exit
We'll post up some video of the blinginess soon!