A related Instructable shows how to link two microcontrollers via the internet http://www.instructables.com/id/Worldwide-microcontroller-link-for-under-20/
Remove these ads by
Signing UpStep 1: Gather the parts
Picaxe 08M chip 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)
Protoboard, servo, microswitch, 9V battery, 4xAA batteries and holder, tag strip, 10k resistor, 22k resistor, 33uF 16V capacitor, 0.1uF capacitor, 7805L low power 5V regulator, 10k pot, wires (solid core telephone/data wire eg Cat5/6), 6V lightbulb, D9 female socket and cover, 2 metres of 3 (or 4) core data wire, battery clips
The above companies also sell USB to serial devices which are useful for laptops which don't have a serial port. It is worth noting that some USB to serial devices don't work as well as others and it is worth getting one from one of the above suppliers as they have been tested for use with picaxe chips. The one that is known to work is http://www.rev-ed.co.uk/docs/axe027.pdf Of course, if your computer has a serial port (or an old serial port card) then this won't be an issue.


















































Visit Our Store »
Go Pro Today »




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?
The problem is interfacing them with a matrix..
Any help is welcome :)
69p from Radio Spares. Threshold voltage for the gate of about 3V. http://docs-europe.origin.electrocomponents.com/webdocs/0791/0900766b807910f8.pdf Looks like an even better substitute as it is much cheaper than the BUK555.
Thanks
p.s.Great project !!!!!!!
current squared x resistance = volts x amps
- Because volts = amps x resistance.
Therefore watts = amps x resistance x amps
= amps squared x resistance
Here they are. In front of the relevant AT commands I have typed here serout -> or serin -> to show you what goes out and comes in as answer from the modem
serout -> AT+CREG=2
serin -> OK
serout -> AT+CREG?
serin-> +CREG: 2,0
serout ->AT+CPIN=2004
serin -> OK
serin -> +CREG: 2
serin -> +CREG: 5
serin -> +CREG: 5,"11BA","2F00"
Above were relevant AT commands to register the modem to the GSM network. Below are 2 types of sending an alarm phone call:
1. with number:
serout -> ATD 0592170185
serin -> NO CARRIER
2. with number from first postion of SIM's phonebook:
serout -> ATD>1
serin -> NO CARRIER
The 'NO CARRIER' is good here, because it shows that the person who was called did not pick up the phone.
serout 1,T1200,("AT+CREG=2")
serin 1, T1200,("OK")
serout 1,T1200,("AT+CREG?")
etc
Only catch is that the exact data has to be received by serin. If it isn't the expected bytes, then it just hangs till the right bytes come through. Unless you use one of the newer picaxes (20x2) that have a timeout on serin.
and to read in,
I have no idea how to use Twitter to send output to PICAXE yet...
Public Sub PostonTwitter(ByVal userName As String, ByVal password As String, ByVal updateMessage As String)
Dim wc As Net.WebClient = New Net.WebClient()
wc.Credentials = New Net.NetworkCredential(userName, password)
Net.ServicePointManager.Expect100Continue = False
Dim updateMessageBytes As Byte() = System.Text.Encoding.UTF8.GetBytes("status=" + updateMessage)
'Use UTF8 to get it properly encoded if you use characters like ç ã etc...
wc.UploadData("http://twitter.com/statuses/update.xml", updateMessageBytes)
End Sub
http://www.instructables.com/id/Setting-up-to-program-a-picaxe-via-shell-scriptli/