MicRoCon mini Robotics Controller Board for Raspberry Pi – Assembling

MicRoCon Robotics Controller Kit

Microcon3_01a

 

Click on any image to enlarge.

The MicRoCon is the baby sister to the more powerful PiRoCon board, but incorporates many of the same features and in fact can use exactly the same code for programming as the pins it shares are the same. Here is a brief comparison table between the controllers:

Comparison

Check you Have all the Parts

Microcon3_00b

  • Printed Circuit Board (PCB) with the 5V regulator already fitted
  • L293D H-Bridge driver chip
  • 470uF capacitors x 2
  • 100uH Inductor
  • Diode
  • 2-pin Screw Terminals x 3
  • 2K2 resistors x 2 (coded Red-Red-Red-Gold)
  • 1K resistor (coded Brown-Black-Red-Gold)
  • 4×3 male header blocks x2 (one has 2 pins removed) [alternatively we may ship with 4 off 2×3 male header blocks depending on availability]
  • 6-pin female header
  • 26-pin GPIO header
  • Fixing hardware – M3 screw, M3 nut
  • Heatsink
  • Rubber “foot”

 

Starting Soldering

If you haven’t soldered before, you might want to check out this instructable. I find that the following order of soldering works best, starting with the lowest profile components and moving to the highest. This allows me to place the components through the holes in the PCB, then turn the PCB over onto the desk surface and gravity will hold the components in place. You can also use Blutack to hold the components in place while you solder

 

1. Add the Resistors

The PCB is labelled with the resistor values. 2K2 resistors are marked by Red-Red-Red-Gold bands, and the 1K resistors is Brown-Black-Red-Gold. It is neatest to ensure that all resistors point the same way. Make sure you snip off the leads on the back after soldering.

mcStep01a

2. Add the Diode

The PCB is labelled with the resistor values. 2K2 resistors are marked by Red-Red-Red-Gold bands, and the 1K resistors is Brown-Black-Red-Gold. It is neatest to ensure that all resistors point the same way. Make sure you snip off the leads on the back after soldering.

mcStep02a

3. Add the L293D chip

Make sure that pin 1, marked by the little black round indentation and the U-shaped cutout of the chip, is at the edge of the board as shown below.

Note: This chip may already be inserted in the board for protection during transport – but it won’t be soldered.

mcStep03a

4. Add the screw terminals

These terminals are used to connect the motors and also to supply external power to the board for the regulator and the motor driver.

Solder all the terminals onto the PCB facing outwards

mcStep04a

 

5. Add the Male Header blocks

These 4×3 header blocks are slightly different from each other, as one has 2 pins removed from it. Make sure you put them into the correct place as they would be difficult to remove if placed incorrectly (of course the block with all its pins won’t fit into the other position, but vice versa is possible).

mcStep05a

 

 

7. Add the 6-Pin Female Header

This header brings out the I2C pins from the Raspberry Pi together with 5V, 3.3V and Ground. This is our standard layout and the 4tronix IP Display dongle will fit directly in here.

mcStep06a

 

8. Add the 470uF Capacitors C1 and C2

These are polarised and must be placed the correct way or magic smoke will appear. The long lead is positive and should be placed in the hole marked with a ‘+’ on the PCB. The casing has a grey band with down arrows next to the negative pin – the grey band should be facing the GPIO connector as shown below. Cut off the legs on the underside after soldering

mcStep07a

 

9. Solder the GPIO Connector to Bottom of PCB

Your kit may be provided with a choice of standard or extended header – select the one you want to use. The other is not required. Make sure you solder this to the correct side of the board!

mcStep08c

 

 

11. Finally Fit the Pillar and rubber foot, then fit onto the Raspberry Pi

mcStep12a   mcStep13a  mcStep14a  mcStep15a

 

Return to MicRoCon Home

 

Assembling Initio Robot using PiRoCon Controller

build01Initio in box and philips head Screwdrivers

These are all the tools you will need to complete the robot.

You may also want a pair of side-cutters to remove some of the extra mounting

 

 

 

 

 

 

Hbuild02ere’s what is in the box

Main chassis with motors, gearbox, battery box and wiring

Top plate

Bag of plastic parts: pillars, standoffs, offset standoffs

Various screws

4 wheels with “SuperGrip” treads

 

 

build03Step 1: Add the vertical pillars by screwing from underneath with the wide-head screws

It’s a good idea to add the mounts for the obstacle sensors and line sensors if you have them.

 

 

 

 

 

Step 2: Screw the top plate on using the remaining 4 wide-head screws.

build04a

The pillars marked with red circle are where the Model A/B Pi will mount

For a Model A/B you will need to snip off some of the unused pillars so they don’t touch components on the Pi, but this is not necessary for a B+ if you use the adaptor plate

Feed the wires for the motors up to the top

 

 

 

Step 3: For Model A or Model B Sbuild05crew the Pi into position with 2 screws.

If you have used the correct mountings then the Pi will have the SD card slot above the On/Off switch

For most purposes you can use a Model A as easily as a Model B.

 

 

 

 

converter01a

 

Step 3: For Model B+

Use the included adaptor plate (Only for Initio shipments after 20th September 2014). You should screw the 4, 10mm pillars into the plate using 4 of the screws provided, then screw the plate to the Initio using the same holes as for a ModelA/B. There is no need to snip any mountings off in this case.

 

Alternatively (also for shipments before 20th September 2014) you can use 1 fixed mounting for the top right hole, and use one of the small offset mounts for the bottom left hole. You will need to snip of some of the mountings for this arrangement.

 

 

 

 

build06Step 4: Now attached the PiRoCon by pushing carefully onto the GPIO header. If using a Model B+ with Pirocon v1 then you will need to attach the extended header (provided) to the PiRoCon before plugging into the Pi. You should also use the 12mm male-female hex pillar to extend the pillar length to match. For Pirocon v2 it will fit directly to the Model B+. All other instructions remain the same

Ensure that all pins are plugged in correctly as damage will ensue if you plug it in wrongly

Use the 10mm hex spacer and 1mm washer provided to allow the PiRoCon to rest securely on top of the Pi’s mounting screw

An alternative when using a Raspberry Pi Model A/B is to use a Male-Female hex spacer. Screw the male end through the Pi and into the mounting pillar (you will need to drill this to 3mm). Then you can fit the 1mm nylon washer and screw the PiRoCon onto the pillar. It is all mounted firmly and can only be removed with a screwdriver.

 

 

build07Step 5: We can now attach the motor wires to the PiRoCon terminals

Motor A for the left motor and Motor B for the right motor

The wires are colour-coded so that we know which way is forwards. The correct order is Red-Black-Black-Red as shown below. (note that “black” is actually a “black and red” wire)

 

This can be tested with the MotorTest script at this point if you like.

 

 

build09Step 6: Attach the Pan/Tilt assembly

Head on over to >here< for the assembly instructions if you haven’t already built the pan/tilt assembly

The ultrasonic sensor is attached to the clip-on pan/tilt mount by the included small saddle clamp and small screws. In fact the saddle clamp is designed to clamp the 30cm female-female cables, enabling the sensor to be plugged and unplugged at will. You will have received the correct number of wires, but they may not be the same colours. Remove 4 wires from your strip of 10 (for most kits).

 

Test with the UltrasonicTest script

 

 

 

build10Step 7: Plug in the servos for the Pan/Tilt assembly

Pan servo is attached to x22/#25 on the PiRoCon board. Tilt servo is attached to x18/#24

Be very careful to ensure correct orientation of the servo connector or the servo will be damaged. The Brown wire is Ground and should be connected to the pins marked G. Orange wire is signal and should be connected to a pin marked S.  Note that Pirocon v2 has the G pins near the centre of the PCB, while v1 has the G pins nearest the edge.

The ultrasonic cable should be plugged into the 4-way male header matching the signals on the sensor: 5V – Trig – Echo – Gnd with 5V nearest centre of PiRoCon board and Gnd nearest the edge. All these are marked on the PCB – just be careful.

 

Test with the PanTiltTest script or the Tracker script

 

Step 8. Adding Line Sensors and Obstacle Sensors

This is enough to test most of the system. You can now add line sensors and obstacle sensors if you have them. You can attach these to any of the 6 remaining 3-way positions. Reading the sensor on the selected pin can be done in Scratch GPIO or Python very simply using the Pin or GPIO number labelled next to the connectors chosen.

 

Obstacle Sensor: These are fitted at the front of the Initio, through the round mountings. Point one slightly left and the other slightly right. They come with ready-made cables so can be attached directly to the PiRoCon. Again, ensure that the Black wire is connected to a pin marked G (for Gnd) and the Yellow wire is connected to a pin marked S (for Signal) on Pirocon.

IRSensor03

NOTE: It appears that a batch of these has been shipped with only one mounting collar per sensor. Please contact us if you don’t have 2 per sensor and we will ship the other. While waiting for the missing collars you can fit the sensors loosely in the mounting brackets and still operate them successfully.

 

Line sensor: These are mounted on the end of the 40mm black pillars so that each sensor is about 1cm above the ground. Use the long Female-Female cables to connect them to the PiRoCon.

We find it is best to use the hole nearest the middle of the sensor for mounting them, but it’s up to you.

line01

 

For example software we’ve created, we have used the following connections for Line and Obstacle sensors:

  • Left Line sensor: x12/#18
  • Right Line sensor: x13/#27
  • Left obstacle sensor: x07/#04
  • Right obstacle sensor: x11/#07

wiring03 wiring01

 

PiRoCon Motor Power setting

When using the DC jack from the Initio to power the PiRoCon, you should ensure that the motor power selector jumper is nearest the edge of the board as shown in the bottom right of the photo below:

pc02c

 

 

The Completed Ultimate Kit looks like this:

initult01c

 

NB: At this point you will have 3 cables remaining:

  • 2 cables with 4 wires each: Red, Black, Orange, Brown. These are the wheel sensors and it is recommended not to bother with these until you are fully familiar with the system
  • 1 cables with Red & Black wires from the switch board. This is an alternative for the DC jack power cable and is not required for the PiRoCon. Other controller boards have 2-pin screw terminals which you would use this cable with. Ensure that the 2 ends of this cable to not short against each other or anything else

 

Connecting Wheels Sensors from Initio

The level shifters on the Pirocon are not compatible with the outputs of the wheel sensors, so you must use the wheel sensors at 3.3V and connect the output(s) directly to the GPIO pins. To do this with Pirocon:

  • Remove the blue jumpers from the pin(s) you want to use from the block of 8 jumpers.  Let’s use #22 and #23
  • Connect the Black wire from each wheel sensor to a suitable Gnd pin – you could use the grounds for #22/x15 and #23/x16 as these are not being used otherwise
  • Connect the Red wire from each wheel sensor to a 3.3V connection – there are 2 pins near the pin 25 end of the GPIO connector for this purpose
  • Connect the Orange (or Brown) wire from each wheel sensor to the pins marked #22 and #23 (where the jumpers were removed)
  • You can now read these two pins to get 18 pulses (36 edges) per revolution of each wheel
  • If you additionally use the Brown wires from each sensor (you will need to use 2 more pins and remove 2 more jumpers) you can get additional, out of phase, readings for each wheel. This allows you to determine the direction of travel of each wheel as well as speed. When you detect an edge on one signal, then the level of the other signal will tell you which direction the Initio is going

 

<< PiRoCon Connection Details

PiRoCon Robotics Controller for Raspberry Pi – Connect & Use

PiRoCon Robotics Controller

NB. V1.2 PiRoCon controller is now shipping. This has a few minor changes and needs to use the addon name “PiRoConB” in Scratch GPIO 4 onwards to work correctly.

Nomenclature

All connections are referenced by the pin number on the GPIO connector. Most also show the name of the signal as normally used on the Raspberry Pi. For instance GPIO connector Pin7 is called GPIO#04. As there is not much space on the PiRoCon board, we have labelled the 8 free, level-shifted, GPIO pins with an ‘x’ prefix to indicate the GPIO pin number, or a ‘#’ prefix to indicate the GPIO number. So the first pin is x07 (#04).

Connector positions

The following drawing shows the position of the major connector blocks. Note especially:

  1. Row of eight 2-way male header pins with jumpers to feed the “unallocated” GPIO pins into the level shifters – remove the jumper to disable if required
  2. Row of eight 3-way male header pins. The pins nearest the edge of the board are Ground, the middle row is +5V and the pins nearest the centre of the board are the signal pins
  3. Row of four male header pins. This is where the HC-SR04 ultrasonic sensor can be attached. Ground nearest the edge of the board, then Echo, Trigger and +5V (Vcc) in that order
  4. Use the three pins with a single jumper to select which GPIO pin to use for the ultrasonic. Note the error on the silk screen. The pin marked Tx is in fact pin 23, and the pin marked SCL is in fact Pin 8
  5. The screw terminal Motor A is intended for the left-side motor(s) and Motor B for the right-side motor(s)
  6. Motor A uses pins 26 and 24 – Scratch GPIO uses 26 as the direction control and 24 as the PWM speed control (for PiRoCon 1.0 this was pins 26 and 21)
  7. Motor B uses pins 21 and 19 (Scratch GPIO uses 21 as the direction control and 19 as the PWM speed control (for PiRoCon 1.0 this was pins 24 and 19)
  8. Servo A (Tilt) is on pin 18 and Servo B (Pan) is on pin 22 (these are the right-most connectors on the 8×3 block
  9. the two 6-pin female headers near the bottom edge of the board are for plugging in an Adafruit PCA9685 16-channel PWM controller. This is also supported in Scratch GPIO as Servo 1..16

prc01

 

Connecting Jumpers

  1. Assuming you require all 8 unallocated GPIO pins to use the bi-directional level shifters, then connect a jumper to every one of the 8 pairs of pins on the level shifter jumper block
  2. There is a 4-way header for the motor driver enable pins. For 2-pin driving of the motor, connect a jumper between the left two pins, and another jumper between the right two pins. (for 3-pin control of the motor, we would use a PWM output from the add-on Adafruit PCA9685 board to driver the enable pins. This has advantages for motor control, but is not used in the basic Scratch GPIO method)
  3. Connect the ultrasonic select jumper to either left-side (pin 23) or right-side (pin 8). Leave out this jumper if you want to use SCL/TXD for something else. You can then use a female jumper wire to connect the centre pin to your selected pin for the ultrasonic. All our examples use the jumper connected to pin 8 or pin 23
  4. The final jumper next to the Vin 2-pin terminal selects the power source for the motors. Connect to VBat to use the DC Jack battery input power, or connect to Vin to use the external screw terminal input (this has moved position and function since PiRoCon 1.0 where it was an unused jumper)

 

Connecting Ultrasonic sensor, Motors and Servos

The photo below shows the motors, ultrasonic sensor and Pan/Tilt servos connected. Note the colours for the servos – it is important to get these the correct way around or you may damage the servos. For 4tronix pan/tilt kit, the colours are:

  • Brown: Ground (nearest edge of PiRoCon board)
  • Red: +5V (middle)
  • Orange:  Signal (inside pin)

Motor A screw terminal is connected to left-side motor. Motor B is connected to right-side motor.

Ultrasonic is connected directly: Gnd – Gnd, Trig-Trig, Echo-Echo, Vcc-5V

2013-10-23_0003

 

Connecting Wheels Sensors from Initio

The level shifters on the Pirocon are not compatible with the outputs of the wheel sensors, so you must use the wheel sensors at 3.3V and connect the output(s) directly to the GPIO pins. To do this with Pirocon:

  • Remove the blue jumpers from the pin(s) you want to use from the block of 8 jumpers.  Let’s use #22 and #23
  • Connect the Black wire from each wheel sensor to a suitable Gnd pin – you could use the grounds for #22/x15 and #23/x16 as these are not being used otherwise
  • Connect the Red wire from each wheel sensor to a 3.3V connection – there are 2 pins near the pin 25 end of the GPIO connector for this purpose
  • Connect the Orange (or Brown) wire from each wheel sensor to the pins marked #22 and #23 (where the jumpers were removed)
  • You can now read these two pins to get 18 pulses (36 edges) per revolution of each wheel
  • If you additionally use the Brown wires from each sensor (you will need to use 2 more pins and remove 2 more jumpers) you can get additional, out of phase, readings for each wheel. This allows you to determine the direction of travel of each wheel as well as speed. When you detect an edge on one signal, then the level of the other signal will tell you which direction the Initio is going

 

Usage within Scratch GPIO

Note that this requires Scratch GPIO version 4 or later from SimpleSi

Commands available, in addition to the normal Broadcast pin11On, etc. are:

  • First you will need create a variable AddOn and set its value to PiRoConB (for v1.0 boards use “PiRoCon”)
  • Create a variable called MotorA (and MotorB), then set value from -100 to +100 for speed and direction. -100 is full speed reverse. +100 is full speed ahead. 0 is OFF
  • Create a variable Pan (and Tilt), then set values from -90 to +90. -90 is pointing left (or down (up??)),  +90 is pointing right (or up (down??)). 0 is pointing straight ahead

 << Assembling PiRoCon                                              >> Building Initio Robot with PiRoCon

PiRoCon Robotics Controller for Raspberry Pi – Assembling

PiRoCon Robotics Controller Kit

 

Features

The PiRoCon is a controller board for motorised robots. It plugs directly on top of a Raspberry Pi and can be firmly attached using the included pillar and screws (Rev B Pi only). It is designed specifically to drive the 4tronix Initio robot, but it is flexible enough to be used with many different types of robot. Scratch software support is provided by the excellent Scratch GPIO Handler from @cymplecy – Version 4 or later required.

prc19

Click on any image to enlarge

The PiRoCon Robotics Controller board includes:

  1. 5V regulated power supply for the Pi, the board itself and any attached peripherals
  2. All 8 un-allocated GPIO pins brought out to 3-way headers with power, ground & signal for sensors, etc.
  3. All of these GPIO include bidirectional, 5V – 3V3 level-shifters
  4. 2 of these pins can be used to drive standard servos (used on Initio to control the Pan/Tilt mechanism)
  5. Level-shifters can be removed, or allocated to different pins by removing jumpers and replacing with jumper wire
  6. A dual H-Bridge is included, connected to to bi-directional PWM controlled motors on screw terminals
  7. The H-Bridge is connected by default to pins 19, 21, 24 and 26, but can be changed
  8. A 4-pin connector for the cheap HC-SR04 Ultrasonic range sensor. This is fed, via a resistor network, to a single pin which is jumper selectable between pins 8 or 23
  9. SPI female header for the SPI pins
  10. I2C/UART header for the I2C and UART signals
  11. Red LED for 5V, Yellow LED for 3V3
  12. Connectors to allow plugging on the Adafruit 16-Channel Servo/PWM Driver using PCA9685 chip. This optional add-on allows PWM control of up to 16 additional servos, or brightness control of 16 LEDs, etc. You can even use 2 of these hardware PWM pins to control the dual H-Bridge using 3 pin mode (where 2 pins control motor direction and the 3rd PWM pin controls speed)

And here is a brief comparison between the PiRoCon and the MicRoCon (his baby sister)

Comparison

Check you have all the parts

The PiRoCon is delivered as a kit with the following parts. We also offer a soldering service should you want us to solder it for you

prc01

  1. PCB
  2. All surface mount components are ready-assembled
  3. 3 off 6-pin female headers
  4. 1 off 8-pin female header
  5. 1 off 26-pin GPIO header
  6. 1 off 3×8 male header
  7. 2 off 2×4 male headers
  8. 12 off 0.1″ jumpers
  9. 2 off resistor networks
  10. 4 off 100nF ceramic capacitors
  11. 2 off 47µF electrolytic capacitors
  12. L4940V5 low drop-out 5V voltage regulator
  13. L293D dual H-Bridge motor driver
  14. 3 off 2-pin screw terminals
  15. DC Jack socket
  16. 10mm hex pillar with 2 screws and 1mm thick washer (total 11mm required between boards)
  17. Heatsink with mounting screw and nut

 

Assembling Process

Starting Soldering

If you haven’t soldered before, you might want to check out this instructable. I find that the following order of soldering works best, starting with the lowest profile components and moving to the highest. This allows me to place the components through the holes in the PCB, then turn the PCB over onto the desk surface and gravity will hold the components in place. You can also use Blutack to hold the components in place while you solder

 

1. Add the L293D Motor Controller Chip

Make sure that pin 1, marked by the little black round indentation and the U-shaped cutout of the chip, is at the edge of the board as shown below

prc02

 

2. Add the 100nF Capacitors C2, C3, C5 and C6

These are small, yellow and marked 104. It doesn’t matter which way round they are put in, but it is neatest if they point the same way. They fit into positions marked C2, C3, C5 and C6

prc03

 

3. Solder across the Motor control pin selections

There are 4 solder bridges to be made. These lie between pin 1 of the L293D chip and capacitor C6. Make sure these are cleanly bridged with no solder traces shorting anything out. If you want to change the pins used to control the motors, then you should remove the solder bridges and connect them to the pins of your choice.

prc04

 

4. Add the Resistor networks RN1 and RN2

These are long and orange. They are polarised and must be connected the correct way round or the level shifters will not work. There is writing on one side only – this writing should be away from the L293D. The dot at one end is pin 1 and this should be in the square at the end of the silk screen markings

prc05

 

5. Solder 2-Pin screw terminals

These are for the motor connections (Motor A and Motor B), and for the alternative source of power for the motor driver – Vin. Make sure you fit them with the screw terminals facing outwards

prc06

 

6. Add the Male header blocks: 8×2 and 8×3

The 8×2 header block is actually made from 2 of the 4×2 headers

prc08 prc07

 

7. Add the Male single row headers

There are five of these individual single row headers and are probably the trickiest items on this board to solder neatly:

  • The 2-pin header is used for the 3.3V near the GPIO header positon
  • One of the 4-pin headers is used for motor enables. The purpose of these is so that you can connect the enable pins for each motor output to a PWM pin as this is the better way to control motors, rather than use PWM on one of the drive pins. The reasoning is fairly esoteric and really makes little difference in practice. But as with many things on the PiRoCon, we provide the option for the customer to experiment
  • The other 4-pin header is to connect a 4-pin ultrasonic sensor HC-SR04 directly. All signal condition and converting to single pin operation is provided on the PiRoCon board
  • One 3-pin header is used to select which GPIO pin is used for the ultrasonic sensor: Pin 8 or 23
  • The other 3-pin header is next to the Vin terminal and used to select whether the battery voltage (VBat) or the screw terminal input voltage Vin is used to power the motors. If you want to power the Raspberry Pi yourself and not use the onboard regulator, you can simply change this jumper to connect to Vin and not use the DC jack battery input

prc09

 

8. Add the Female headers JP5..JP8

There are 4 female headers; 3 are 6-pin and 1 is 8-pin

  • JP5 and JP6 (both 6-pin) are used for the I2C expansion port. You can plug Adafruit’s 16-channel PWM board directly in here. Also the 4tronix ADC/DAC board and other boards are planned for the future
  • JP7 (6-pin) is the general purpose I2C expansion that also carries the RXD and TXD serial pins
  • JP8 (8-pin) contains the SPI pins
  • All 4 headers have 5V, 3.3V and Gnd available

prc10

 

9. Solder the voltage regulator

The L4940V5 is a low dropout regulator that will work happily down to a 6V input and so can be used with 4 AA alkaline cells up to 6-cells of rechargeable NiMH. Solder it in vertically with the legs as far through the board as they will go, then bend it over backwards and you should find that the hole in teh regulator lines up with the hole in the board. If not it can be moved around a mm or so

prc11

 

10. Add the 47uF Capacitors C1 and C4

These are polarised and must be placed the correct way or magic smoke will appear. The long lead is positive and should be placed in the hole marked with a ‘+’ on the PCB. The casing has a grey band with down arrows next to the negative pin

prc13

 

11. Add the DC Jack

prc14

 

12. Solder the GPIO connector to the Bottom of the board

Make sure you solder this to the correct side of the board!

prc15 prc14

 

13. Fit the heatsink to the regulator

You will need to push the heatsink onto the regulator then adjust its position so the holes in PCB, regulator and heatsink line up. I find that poking a small screwdriver through the holes allows me to move around the components until the line up correctly. Then push the M3 nut inside the heatsink and screw in the M3 screw from teh bottom of the board

prc16

 

14. Attach the 12 Blue jumpers

These are used for various selections: ultrasonic pin, motor voltage input, motor enables (2) and level shifter selection (8)

prc17

 

15. Attach the Mounting spacer and fix to your Raspberry Pi (Rev B only)

To give a robust mounting of the PiRoCon onto the Raspberry Pi, we provide a metal spacing pillar 10mm and a 1mm thick washer. The spacing between the Pi and the board should be 11mm with this type of GPIO header, so both the metal spacer and the nylon washer should be used as shown below. If there is already a screw holding the Raspberry Pi to a case or similar, then you can remove the nylon washer to give the correct spacing for it to rest on top of the existing screw head

prc18prc19

 

16. Download code from our GitHub

  • MotorTestB.sb Allows control of the motors using arrow keys (ScratchGPIO)
  • PanTiltTest.sb Allows moving the pan/tilt assembly using arrow keys (ScratchGPIO)
  • UltraSonicTest.sb Shows operation of the UltraSonic sensor (ScartchGPIO)
  • TrackerTest.sb Uses the ultrasonic sensor on a Pan/Tilt assembly to follow (ScratchGPIO)
  • Avoider.sb Uses IR obstacle sensors and motors to avoid objects (ScratchGPIO)
  • InitioTest.sb Uses line sensors, obstacles sensors and motors (ScartchGPIO)
  • motors.py Python program to show motor operation

>> Wiring & Usage