Let's Make Robots!


Arduino code - switch statement

Hi, I code a program for my autonomous robot. I am sending numbers from 0 to 8 from Raspberry pi to Arduino through Serial communication. I have Rasp code. But arduino code has some problems. Please can you tell me how to write it best? I want to use switch statement to choose direction for my robot/motors. But when I compile that code to arduino on robot - my robot start doing only default commands. Please why????


Capacitive touch switch for large (larger than human) metal objects

Hi All,

I'm trying to make a capacitive touch switch that I can integrate into large metal objects and turn them into sensors.  Think of there being a 400lb engine on a pedistol (assume the entire object body is conductive), I want to have it where when a person touches the engine a video is triggered elsewhere in the room.

Does your bedside table give light when you open it? In a discussion with a carpenter about his furnitures I asked about the usage of electronics in his creations. … Read more
Synchronizes a cieling full of UV LEDs to music
This project began as a graduation gift to my sister. I thought it would be cool to install lights in our basement that react to music so that it could be used as a … Read more
Change direction when meet wall
Using a
Hi all! First robot ever, saying it's not great would be an euphemism, nevertheless I would be very glad to get some feedback from you. How it works : two switches … Read more

LED trigger to picaxe signal

I found a new sound sampler module for my yellow drum machine. The problem I have right now is that the switch to operate and trigger the playback was a motion sensor. Essentially a LED in a thin tube.

I want to change that so that I can trigger that function from the Picaxe output.

Sound sampler board

inverted switch

is there anyway i can make something turn on when i open a box without it beiong on constantly to check if it is open? 

the box opens sort of like a hinge but there is nothing that touches when open that doesn't touch when closed

thanks :)


a circuit to make a 3 way switch

Thanks a lot for the support you people showed last time. I want to make a circuit which has 2 LEDs and a normal on/off switch (at least) and other components as required. The circuit should function like this- When i turn the switch on for the 1st time, LED 1 glows but LED 2 remains switched off. When i turn the switch off for the 1st time, both LED 1 and 2 remain off. When i turn the switch on for the 2nd time, LED 2 glows but LED 1 remains switched off. When i turn the switch off for the 2nd time, both LED 1 and 2 remain off. Please provide me with a circuit diagarm for the same and
PIR motion sensor and also other useful stuff like motor with gears, LED, switches, 3 AA batteries and connectors
Hi! A friend of mine reminded me of a cheap source of electronic components that can be used in robots. And the best thing is you can find it in every … Read more
Turns on and off whatever you connect to it
There are already some great projects on the internet about hacking home automation systems, but what I wanted to do was to control my plugs creatively. Thats why … Read more

Momentary push button to on/off switch?

Is there some way to make an on/off switch using a momentary push button? I think the buttons feel more natural. They are smaller too. Just wonderin'...

Gives push button the typical ON/OFF toggle function.
Hi everyone, this is my first walkthrough, hope You'll enjoy ;-) ___Where the story begins___ I wanted to use a PC PSU as power supply for my works and I was … Read more

What to do with this

Here is the top of the switch asembeley:


Here are the pins:


Sorry it is blurry but you get the idea.

Arduino bump switches

I Have my very first robot posted on LMR and he's pretty cool except whet he gets a blind spot on his Parallax PING)) sensors and hits a wall, burning the motors and wheels. I'm really really naive when it comes to programing, i know only how to understand programs people have written before for arduino. I do know tons about non- programmed electronics, though. I want to add something like bump switches to my code. I don't know how! assistance requested. My robot is Makerson and he's new on the front page of robots.

Automated Light Switch - Laziness Prevails!

The Video explains all.

This is my automated light switch, built in a little under 2 hours. Just one application that a servo can be used for.

The servo is just mounted on some hastily cut masonite, the triangular brackets are just glued to the main board with PVA, and everything else is held together with double sided foam tape.





Multiple swithces to analog input?

Just had an idea. I'm planning to use a LOT of (tactile) switches on a walking robot. For instance I wanna put several under each foot. But it seems like a waste of pins to use a digital pin for each switch (or use multiplexers). So I thought I might be able to connect the switches in paralel and read several at a time from an analog input using resistors of different sizes connected in serial with each switch. Like this:


Punchable/stompable switch

Hi, guys. I remember reading somewhere (maybe LMR, maybe Make Magazine?) about a DIY way to make a sort of electrical switch that closed a circuit when it was punched or stomped. It had something to do with a layer of foam between two contacts -- maybe the foam was partially conductive or something? I'm working on a musical project that involves recreating something similar to a DDR dance pad, and I'm trying to figure out how to make the pads. Does anyone know what I'm talking about, and maybe have a link or something? Or does anyone have any ideas that might prove useful? Thanks.

9V battery keep blowing up!!!

Ok I have a problem that just does not make sense but since I am a newbie I thought I would throw this up and see if I can get some pointers.

digital input trouble

ok guys, building my first picaxe robot and I have a question about the switch I hooked up.

I have a switch wired to digital input 7 and V1 and this is my code

if pin7 = 0 then foreward
goto main

low 4 high 5
high 6 low 7
goto main

for some reason when the switch is pressed or let go nothing happpens.

Any ideas why it is not working?

Movement-sensitive switch

Hi Guys,


I was recently rummaging about in my parts bin and i cam across this thingy:

switch This used to be part of a toy i had as a kid, which was a spinning top that would start to play music and flash lights when it was spun.