My Account

Wish List (0)

ModMyPi's Blog ModMyPi's Blog Feed


in RyanTeck, RyanTeck Traffic HAT on

Blinking an LED in python has become really easy due to the new GPIO Zero library. There's a few different ways. Lets begin by just turning the amber LED on. Open up your favourite python editor and type in the following to turn it on. from gpiozero import LED amber = LED(23) amber.on() And then try "amber.off()" to turn it off. We can make the LED now blink by adding the following code at...

0 Comments

in RyanTeck, RyanTeck Traffic HAT on

Following on from the previous tutorial of blinking an LED using GPIO Zero we're going to expand into creating a traffic light program. However instead of using the separate modules for the LED And buzzer there is a neater way that we can do it using the TrafficHAT Add-on function. Begin by adding the following code to setup the TrafficHAT replacing Ryan Walmsley with your name. #TrafficHAT Program #TrafficLight By Ryan Walmsley from gpiozero...

0 Comments

in RyanTeck, RyanTeck Traffic HAT on

The TrafficHAT is an Add-on board for the Raspberry Pi designed to help teach Basic Programming & Soldering. The Add-On meets the requirements of a HAT Add-On for the Raspberry Pi and is compatible with all models that have the 40 Way Pin header format. (A+, B+ & Pi 2s) Python Tutorials GPIO Zero GPIO Zero is the new method of interfacing with LEDS, Buttons...

0 Comments

in RyanTeck, RyanTeck SnowPi on

This is another demo program for the SnowPi written by Jarle Tiegland. A video tweet can be found at @jarjargeek's vine. from gpiozero import LEDBoard from gpiozero import LED from time import sleep nose = LED(25) rEye = LED(24) lEye = LED(23) tummy = LEDBoard(7,8,9,17,18,22) while True: tummy.blink(1,0.5,5) sleep(0.5) nose.on() sleep(1) nose.off() sleep(1) rEye.on() sleep(0.5) rEye.off() sleep(0.5) lEye.on() sleep(0.5) lEye.off() sleep(0.5) tummy.blink(0.3,0.2,5) sleep(0.5) rEye.on() sleep(0.2) rEye.off() sleep(0.2) lEye.on() sleep(0.2) rEye.on() sleep(0.2) rEye.off() sleep(0.2) lEye.on()...

0 Comments

in RyanTeck, RyanTeck SnowPi on

An Advent Calendar Program By Carl Monk. # by Carl Monk (@ForToffee) # github.com/fortoffee from time import sleep from datetime import datetime from gpiozero import LED, LEDBoard board = LEDBoard(9, 22, 8, 18, 7, 17, 23, 24, 25) def setDay(day): board.off() sleep(0.25) sixDayCount = int((day - 1) / 6) for i in range(0, sixDayCount + 1): if i > 0: if i < 4: board.leds[i + 5].on() for x in range(0, 6): board.leds[x].off() else:...

0 Comments

in RyanTeck, RyanTeck SnowPi on

This is another demo program for the SnowPi written by Tony Goodhew. A video tweet can be found at |@MrTomsWorld twitter. #!/usr/bin/python # Tony Goodhew 19 November 2015 # Uses SnowPi and switch with 10K Ohm pull up on GPIO #16 # PWM brightness control of nose # Import required libraries import RPi.GPIO as GPIO import time import random random.seed() # Tell GPIO library to use GPIO references GPIO.setmode(GPIO.BCM) sw = 16 GPIO.setup(sw,GPIO.IN) LEDs...

0 Comments

in RyanTeck, RyanTeck SnowPi on

The following code will blink each LED one at a time. GPIO Zero Setup Instructions can be found here You can run this code by putting it into a python file and then running it with python. #SnowPi Test Code import random import time from gpiozero import LED #Setup all the LEDs led7 = LED(7) led8 = LED(8) led9 = LED(9) led17 = LED(17) led18 = LED(18) led22 = LED(22) led23 =...

0 Comments

in RyanTeck, RyanTeck SnowPi on

In this guide we will go through all of the steps to solder up your new SnowPi. Checking the components First begin by checking that you have all of your components. You should have: 1 X Snow Pi PCB 1 X 5MM Diffused Orange LED 1 X 330 Ohm Resistor Array 1 X Right Angle 26 Way GPIO header 2 X 5MM Clear Blue LED...

0 Comments

in RyanTeck, RyanTeck SnowPi on

To begin please make sure you have the latest version of GPIO Zero Installed. You can follow our guide on installation @ GPIO Zero Install. Getting SnowPi working is actually very simple and is done in minutes after setting up GPIO Zero using the guide above. First we need to check the numbers of the GPIO Pins we need to use. We'll begin by blinking the...

0 Comments

in RyanTeck, RyanTeck SnowPi on

Here you will find links to all of the documentation below. Please note that documentation is in the process of being written and should be completed by the 29th of November. We've prioritised getting the hardware out and doing the documentation after as this is the quickest way of getting it all out to you. The programming instructions are subject to change if modifications are made to any of the software used such as GPIO...

0 Comments

in RyanTeck, RyanTeck RTk.GPIO on

This tutorial will go over writing your first program and using the RTk.GPIO and assumes you've already followed the guide to install python and the library installed. If not follow the guide here. I'm still writing this. The demo code below should work fine if you change the number 22 to the pin which an LED is connected to (I used Pin 22 as its Green on the TrafficHAT. Changing it to 4 should...

0 Comments

in RyanTeck, RyanTeck RTk.GPIO on

In progress of being written. Previously we had a page for Linux, Mac and Windows however as a majority of the guide is the same except for the OS specific guides in part 1 we've merged them into one to prevent updating one and missing others. This guide has 3 main parts, The first is installing python, pip and any drivers if your OS requires them. The second goes over installing the library, The third...

1 Comments

in RyanTeck, RyanTeck Motor Controller on

At the bottom of the motor controller there are 3 Terminal Blocks. These are labeled: Motor 1 & Motor 2 - These are the motor blocks. In each block you can wire one motor into each block. These are Bi-directional so it doesn't matter which side of the motor goes into the pins on the block. The direction is then controlled via code. VCC2 - This is the power in to power the motor controller IC and is the...

0 Comments

in RyanTeck, RyanTeck Motor Controller on

These are the instructions on how to solder the RTK-000-001 Kit up ready for use. These instructions apply for both the kits on their own and the kits packaged with the robots as they are identical. From the 4th of April 2016 all new orders by Ryanteck LTD. include the new Version 3 Board. Tools Required: The following tools are required for assembly: Soldering Iron (30W or above is recommended) with a...

0 Comments

The product is currently Out-of-Stock. Enter your email address below and we will notify you as soon as the product is available.