Driving High voltage loads with optoisolated 220VAC/16A switch by Arduino and OLinuXino

eduArdu is educational low cost Arduino board, it has plenty of resources like: LED 8×8 display, Joystick, Buzzer, Microphone, temperature sensor, Ultrasound distance meter, PIR sensor, IR emitter and receiver, Capacitive buttons, RGB LED, Lipo charger for stand alone work.

Here we will show you how you can drive high voltage loads like lamps, heaters etc with PWR-SWITCH connected to eduArdu.

Plug PWR-SWITCH in mains and the object you want to control plug in PWR-SWITCH receptacle.

Then connect “-” termianl of PWR-SWITCH input to eduArdu UEXT.pin2 and “+” terminal of PWR-SWITCH input to eduArdu UEXT.pin4.

In Arduino IDE make this program:

void setup() {
   pinMode(0, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
   digitalWrite(0, HIGH); // turn the PWR-SWITCH on
   delay(5000); // wait for a 5 seconds
   digitalWrite(0, LOW); // turn the PWR-SWITCH on
   delay(5000); // wait for a 5 seconds
}

The Lamp will start to blink 5 seconds on and 5 seconds off.

You can drive high voltage loads with A20-OLinuXino-LIME2 + LIME2-SHIELD:

In this setup connect “-” termianl of PWR-SWITCH input to LIME2-SHIELD GPIO.pin9 and “+” terminal of PWR-SWITCH input to LIME2-SHIELD GPIO.pin7 (GPIO271 in Linux) and you can use this code to switch on and off PWR-SWITCH:

echo 271 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio271/direction

echo 1 > /sys/class/gpio/gpio271/value

echo 0 > /sys/class/gpio/gpio271/value

or you can use Python and pyA20LIME2:

!/usr/bin/env python
from pyA20Lime2.gpio import gpio
from pyA20Lime2.gpio import port
from pyA20Lime2.gpio import connector
gpio.init() #Initialize module. Always called first
gpio.setcfg(port.PI15, gpio.OUTPUT)

gpio.output(port.PI15, gpio.HIGH)
gpio.output(port.PI15, gpio.LOW)

New Open Source Hardware board released: BB-TB6612 Dual DC motor controller with PWM to drive small robot cars with 12V up to 1.2A motors

BB-TB6612b

BB-TB6612 is dual channel DC motor controller board it is nice add on for the Robot chassis we have ROBOT-2WD-KIT , ROBOT-2WD-KIT2 , ROBOT-2WDL-KIT , ROBOT-3-WHEEL-KIT and can drive these gear motors: MG-6-120 , MG-6-48  and MG-6V-1:380

The digital logic can be from 2.7 up to 5.5V. The motor voltage can be from 2.5 up to 13.5V.

PWM, CW, CCW, brake-stop, stand-by modes are implemented.

 

Gear motors and accessories for building robot cars are in stock

MG-12V-DE5

We got some new toys in stock for robot builders. The MG-12V-1:100-DE and MG12V-1:380-DE are gear motors for robot cars, working at 12V with 78 RPM and 300 RPM . Both have digital encoders which give two channel feedback for the rotation speed, used for identifying the speed and rotation direction. The MG-12V-1:100 and MG-12V-1:380 are lower cost alternatives to those motors but without encoders.

These motors can be attached to a flat surface with MG-FIX.

MG-FIX

The MG-WHEEL-43mm are rubber wheels with diameter 43mm and a width 19 mm which attach directly to MG-6V and MG-12V gear motors.

MG-WHEEL-43mmb

The MG-WHEEL-65mm is rubber wheel with diameter 65mm and width 25mm. It requires a special MG-COUPLER.

MG-WHEEL-65mmd

 

New Robotics and CNC products in stock

ROBOT-GRIP

We have now in stock many new Robotics and CNC components:

KITS:

ROBOT-2WDL-KIT Robot platform with two motors with wheels and encoders

KIT

ROBOT-LINE-FOLLOW Robot platform with analogue line follower

ROBOT-LINE-FOLLOW

 

Micro motors:

MOTOR-200806 12000 rpm brush motor working at 3-6VDC

MOTOR-200806a

MOTOR-F1607 small drone motor with fan working on 3-6VDC and speed up to 50 000 rpm

MOTOR-F1607

VIBRATING-MOTOR-3X8 small vibrating motor only 3×8 mm size! you can use it to build small bug robot 🙂

VIBRATING-MOTOR-3X8.jpg

 

Stepper motors:

SM-17HS4023 Stepper motor for CNC XY table or 3D printer 42x42x23mm

SM-17HS4023-1

SM-42HB34F08AB Stepper motor for CNC XY table or 3D printer 42x42x34mm

42HB34F08AB

SM-5VDC-DRV Stepper motor with 1:64 gear and driver!

SM-5VDC-DRV

SM-60SL Stepper motor with 48 mm screw

SM-60SL

Robot hand:

ROBOT-GRIP Robot hand which works together with servo motor to open and close

ROBOT-GRIP

Gear motors:

MG-12V-M4X55 Gear motor with M4x55mm screw can be used for small CNC table or Door lock/unlock mechanism.

MG-12V-M4X55

MG-6V-1-380 Very compact Gear motor 6VDC 30 RPM can be used for blinder open, close

MG-6V-1:380

CARDAN-5X8 and CARDAN-5X5 Free joint for Boat fan or blinders open/close

CARDAN

Linear guides:

LINEAR-GUIDE-400MM Linear slide with 400 mm length

MGN12L400

SCREW-T8X8-300MM Trapeziodal screw with brass nut 300 mm

SCREW-T8X8

Shaft support:

SK8, SK10

SK08

SHF8, SHF10, SHF12

SHF12

Wide range of Micro Bearings

604UU

GT2 Pulleys and Belts:

GT2-BELT200-6MM

GT2-5T60-6MM

Aluminum frame corners for 20×20 , 30×30 and 40×40 profiles:

ALU-L

 

Strong neodymium magnets 30x10x3 and 10x10x10:

MAGNET-30x10x3

Lot of Robot and CNC parts are now in stock stocked.

SM-17HS4023-1

We needed these for our own projects development, but decided that other may need these in small quantities as well, so decided to stock:

Linear Guides,

MGN12L400

Bearings,

604UU

SC8UU

Stepper Motors,

42HB34F08AB

Couplers,

COUPLER5-8

Shaft supports

SK08.jpg

New Product in stock: BB-VNH3SP30 full bridge motor driver 30A / 36VDC

Image

BB-VNH3SP30 is full bridge motor driver 30A / 36VDC suitable for driving DC servo motors and gear motors. With spring connectors for quick wiring it’s perfect for motor controlling via Arduino. STATUS LEDs show the bridge current direction.

New Product in stock: BB-L298 dual full bridge motor driver 2.5A/36VDC

Image

BB-L298 is dual full bridge motor driver suitable for the robot gear motors. With spring connectors for quick wiring it’s perfect for motor controlling via Arduino. STATUS LEDs show the bridge current direction.

 

New Products: Robot toy gear motors, wheels, chassis in stock!

Image

We got new products in stock:

Gear Motors with 1:48 and 1:120 gear ratio, working on 6VDC:

Image

65 mm x 25 mm wheels which couple to the gear motors above:

Image

3-wheels and 4-wheels plexyglass chassis:

Image

and of course battery holder which mounts to the chassis:

Image

with these parts you can build complete 3-wheel chassis:

Image

or 4-wheels chassis:

Image

latter could be made with pair of high speed / lower torque and pair of low speed / higher torque  motors.

This is perfect moving platform for your next Arduino, Pinguino, Maple or OLinuXino project.

AVR-T32U4 Arduino Leonardo experiments with knock sensor and servo

Image

This is simple fun project which we build for couple of minutes with materials in the office.

What you need: AVR-T32U4 Arduino Leonardo clone, Breadboard-1 for AVR-T32U4, LiPo battery, some JumperWires, Knock sensor, MS-1.3-9 servo motor, some tape and empty carton box.

Tape the servo in the corner and put on it plastic arm which to rise the box lid, tape the knock sensor to the lid. Connect the servo to D9 and Knock sensor to A0 of AVR-32U4.

The code Knock.ino is on GitHub https://github.com/OLIMEX/DUINO/tree/master/AVR/KNOCK, as you can see it’s pretty simple, once on A0 is detected level above some threshold (you can experiment what this level is in your case as it depend on how you attach the knock sensor to the box) you move the servo motor up wait some time and move it back.

Watch the video in action: http://www.youtube.com/watch?v=HFmPvcbbiT4

Then one of our practicing students at Olimex decided to make code which will open the box only if you knock in some secret sequence of long and short knocks and the code is also on Github (please be gentle the code is crappy but written by enthusiast with no much experience).

The new video for the password knock is here: http://www.youtube.com/watch?v=3wsnxi5x2R0

AVR-T32U4 Arduino Leonardo Analog Servo motor drive demo

Image

We stock now 6 types of Analog Servo drive motors https://www.olimex.com/Products/RobotParts/ServoMotors/

The motor parameters are encoded in their names:

MS-1.3-9 means – Servo-Motor with 1.3 kg.cm force and 9 gram weight.
MS-R-1.3-9 means Servo-Motor with 360 degree angle and 1.3 kg.cm force and 9 gram weight.

All servo motors came with various exchangable plastic arms:

ImageImage

Separately are available aluminum ARMs which can snap to the bigger 3.2 kg.cm and 6 kg.cm motors, these are so powerful than can open and close drawers.

Adruino have special library for servo drive just notice that the normal servos will accept angle between 0 and 120 degree only, while the R type will accept from 0 to 360 degree.

The demo code is on GitHub: https://github.com/OLIMEX/DUINO/tree/master/AVR/SERVO

You can see the code running on this video http://www.youtube.com/watch?v=OdH7dr4Aa30