Worldwide microcontroller link for under $20

Worldwide microcontroller link for under $20
Control your home thermostat from work. Turn on a sprinkler from anywhere in the world by flicking a switch. This Instructable shows how to link two or more $4 microcontrollers using the backbone of the internet and some simple VB.Net code.

This builds on an earlier Instructable which shows how to link a microcontroller to a PC and use a pot to control a servo http://www.instructables.com/id/Control-real-world-devices-with-your-PC/ This time we have a microcontoller talking to a VB.Net program then to an ftp website, back to another VB.Net program and thence a second microcontroller anywhere in the world, with or without human intervention.

How else are the machines in The Matrix ever supposed to take over if they can't talk to each other?
 
Remove these adsRemove these ads by Signing Up
 

Step 1Gather the parts

Gather the parts
Many of the parts are the same as in the PC Control Instructable http://www.instructables.com/id/Control-real-world-devices-with-your-PC/ and it is suggested that this be completed first before attempting to link two microcontrollers. While it is quite possible to use a pot to control a servo, this time round we are going to go for something simpler - a switch turning on a led. The switch could easily be a tank level sensor and the led could be a pump down near a river but let's get something simple working first.

Parts - Two Picaxe 08M chips - available from many sources including Rev Ed http://www.rev-ed.co.uk/picaxe/ (UK), PH Anderson http://www.phanderson.com/ (USA) and Microzed http://www.microzed.com.au/ (Australia). These chips are under $4US.

Two of: Protoboard, 9V battery and battery clips, 10k resistor, 22k resistor, 33uF 16V capacitor, 0.1uF capacitor, 7805L low power 5V regulator, wires (solid core telephone/data wire eg Cat5/6), LED, 1k resistor.

1 of: D9 female socket and cover and 2 metres of 3 (or 4) core data wire (for download) and a toggle switch.

2 computers with 9 pin serial ports (can be debugged on one computer though) and an internet connection.

For computers with no serial port, a USB to serial device http://www.rev-ed.co.uk/docs/axe027.pdf and a small stereo socket.
« Previous StepDownload PDFView All StepsNext Step »
28 comments
Jul 17, 2011. 7:54 PMmarc_is_curious says:
1st of all:
thanks for this interesting tutorial !

unfortunately (on this tutorial's behalf)
i am a macintosh user ....
i managed to rebuild the visual basic part via word
(via "tool/macro/visual basic editor")
but
receive the message "invalid outside procedure"
when running the script.

dioes anyone know how to translate
the visual basic part into "mac-able" code
or
use an alternative way to handle the
internet connection?
May 5, 2011. 3:10 PMshaunak says:
Thanks for the inspiring instructable. This FTP communication link opens up whole new avenues in communication with a micro. :)
Sep 11, 2010. 12:43 AMverdastel says:
Oh this is just a cool instructable, it inspires me to jump into microcontroler....it's the future...
Apr 8, 2010. 2:00 PMparparcheese says:
can you buy these chips on Digi-key?
Apr 3, 2009. 1:38 AMwee_man says:
Hmm wouldn't it be cool if a master pic sends its code up and then all the salves connected to to reprogram them selves to the master. is this even possible?
Nov 3, 2009. 11:05 AMsupra_2009 says:
How do u complied hex files from vb2008?
ASAP!
Apr 14, 2009. 1:33 PMwee_man says:
Hey that sounds real cool you should keep us posted on that or maybe even write an instructable?
Jun 12, 2009. 2:44 AMwee_man says:
hi everyone i recently posted a instructable on how to program a picaxe automaticly from a bas file on an ftp server heres a link if your interested
http://www.instructables.com/id/Setting-up-to-program-a-picaxe-via-shell-scriptli/
Dec 5, 2008. 1:38 PMbrewbug says:
What a great instructable! I thought with all that s/w there would be a problem or 2, but none. Everything worked great. I have Vista on one machine and XP on another. The Vista PC was short on com ports and an USB adaptor that is Prolific type was used on port 13. I will keep article and s/w for referance. Thanks for sharing this information. Bruce
Nov 14, 2008. 4:44 PMplane phanatic says:
Would this be possible to do with a Picaxe 28x chip?
Nov 15, 2008. 8:51 AMplane phanatic says:
Thanks!
Oct 25, 2007. 9:27 AMastrozombies138 says:
sigh* mac compatable?
Jul 8, 2008. 12:08 AMconrad2468 says:
actually the basic stamp is mac compatable as long as you dont get the DAME SERIAL TO USB CABLE FROM RADIO SHACK!!!!!!!!!!!
Nov 3, 2008. 5:41 AMsupra_2009 says:
Can vb.net such as vb2008 will burned to pic16F628?
Nov 26, 2007. 2:48 AMratmandu says:
Macs do have USB (If I remember correctly, apple is even part of the USB-IF) and are able to use just about any USB-RS232 adaptor, As well as USB-Parallel adaptors. It is also very easy to create a program with the same (or better) functionality with the free, full version of Apple XCode (which comes on all OSX Discs, and you can download free at http://developer.apple.com )

I've been using XCode 2.4 on tiger, and now 3.0 on leopard with a USB-RS232 adaptor, and OSX-AVR to do stuff with AVR microcontr
Oct 29, 2007. 3:56 PMarniew1965 says:
Fabulous instructable Dr Acula. I've long dreamt of a remote control for my picaxe controlled brewing machine! (http://hermanmachine.spaces.live.com/) Thanks for giving me the steps to put that together.
Oct 29, 2007. 10:57 PMarniew1965 says:
Hmmm, I can see a case for a streaming web cam for shed security ;-) And with this great idea you could pump brewing water out of the stream and make the nectar in one of your remote sheds, only needing to walk up the hill when it is time to pull that pint. Cheers
Oct 26, 2007. 7:39 PMFamilyGuy2006 says:
Absolutely Amazing! I'll be shopping for parts right after Halloween. The hard ware is cheap, the software is done for me (Thanks). Have you thought of any practical applications? Or impractical for that matter? I see so much potential, but I'm not seeing the killer app. Anyone have useful or silly ideas on how to use this?
Oct 25, 2007. 12:39 PMalcurb says:
Nice project! Don't know if it the fault of the poster or the posting software, but the code could be a lot easier to read if it had the structured indents.
Oct 25, 2007. 4:30 PMalcurb says:
I'm aware of that feature of VB, but it is not the sort of thing one can easily do from an internet cafe if all one wants to do for now is read and follow the code. Nice project!
Oct 25, 2007. 7:47 PMtrebuchet03 says:
Clicking the "i" button will bring you to higher resolution version of the image ;)

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
29
Followers
3
Author:Dr_Acula