Another SunSPOT car using Lego

The SunSPOT demoboard have a TC4469 IC which is a CMOS driver. This driver is like a relay, which you can control an abitary current, with the one in the SunSPOT.

Therefore, a system, which connects to the H0-H3, VH and GND, will be able to use a different current, than the 3.3V hvis would be the output on D0-D3.

A sample setup could be this:

External side ------ SunSPOT side 

VH-----------------------------VH

OUT----------------------------H0

GND---------------------------GND

This setup will be able to switch the out between VH and GND. If a motor is to be controlled, a setup like this:

VH-----------------------------VH

OUT1----------------------------H0

OUT2----------------------------H1

GND---------------------------GND

By setting H0 and H1 a table like the one given after the break will be made:

 H0  H1  Current
 0  0  0
 0  1  -VH
 1  0  +VH
 1  1  0

It is the difference in current which is measured. By this the motor also can be controlled to go both ways. 

 

This could be old lego motors, or other electronic equiment, which need more than 3.3V. By doing so, some lego motors, could be used without using a motor contoller, or another external board for the motors. 

A code stub, which implement this control, can downloaded.

In the example, the variable, which descide which ports that should go high and not, is recieved from another SunSPOT, and be this making is a remote controlled unit.

This is used to make a SunSPOT remote controlled car, using some old Lego motors, and two SunSPOTs. Pictures will be avaible, as soon I get to build the actually car. 

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

David Askirk

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today