Home › Magazines › 2002 › July › Compass Sensor for Lego RCX

Compass Sensor for Lego RCX

never get lost again

Published in issue 312, July 2002

Compass Sensor for Lego RCX
Mindstorms, the by now well-known series of robot construction materials from Lego, has already been the subject of several articles in Elektor Electronics. In 2000, we presented a series of five articles dealing with all the ins and outs of the RCX module, which is a microcontroller block with three sensor inputs and three outputs for controlling items such as motors and lamps. Following this came a light sensor, a proximity sensor and a sensor multiplexer, and recently a design for an I2C interface appeared in our magazine. This month it’s time for a compass sensor, which enables us to give our robots a sense of direction.If a robot has to travel through a space, this can be implemented in a variety of manners. The first option is to allow the robot to search out its own path. Proximity and contact sensors allow the robot to independently avoid obstacles in order to prevent damage and/or prevent the robot from ending up in a situation that it cannot get out of on its own. The Mindstorms package includes the sensors that we need for this approach.
Resistors:
R1 = 47kOhm
R2,R5-R8 = 100kOhm
R3 = 150kOhm
R4 = 220kOhm
Capacitors:
C1 = 22µ F 16V radial
Semiconductors:
D1-D6 = 1N4148
D7 = BAT85
IC1 = 74HCT4066
Miscellaneous:
Sensor1 = Pewatron 6945 (Pewatron AG, www.pewatron.com)
BT1 = 9V PP3 battery with clip-on lead
Lego connection cable (cut in two):
length 26.6cm, Lego order code 5311
length 9cm, Lego order code 5041

Click below to download a PDF copy of this article from Elektor magazine.

 

Downloads 

PDF Article (e027s80.pdf)
10 Elektor Credits
PCB layout (010111-PCB.pdf)
10 Elektor Credits
 

Order from Elektor 

PCB
010111-1
 

Order from Eurocircuits 

PCB

 

Free downloads 

010111-11.zip

Free download

Please note. In view of the complexity of international markets, Elektor cannot guarantee the availability of components for this project.

Subscribe now

Subscribe to our free
E-weekly Newsletter!

Enter your Email address:

Follow Elektor

      

Act now!

Sponsored

FAQ

Before submitting questions, review our FAQ section!

Bestseller

Controller Area Network Projects

The aim of this book is to teach you the basic principles of CAN networks and in addition the development of microcontroller based projects using the CAN bus.

Package Deals

Elektor Bundles

Check our Package Deals and save money! Discounts up to 19% now available!

Price Slashed

Elektor OSPV

This Open Source People Vehicle is perfect for factory halls, warehouses, hospitals, colleges, schools etc.