SSH-bling

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.

logo

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.

_dsc6962

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()

 IMAG1541.jpg
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


IMAG1537.jpg
We'll post up some video of the blinginess soon!

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s