Hi guys,
I was wondering do you typically use the RX and TX pins to send information from one Arduino to another?
Is there betters way of sending data?
Hi guys,
I was wondering do you typically use the RX and TX pins to send information from one Arduino to another?
Is there betters way of sending data?
Have you looked at I2C (TWI)?
I2C's the way to go. It has built in error checking and will automatically resend data if it's malformed. It just needs 3 lines SDA, SCL, and the grounds must be tied together. As long as both devices are being powered at about the same voltage, say 5v, they don't have to be supplied by the same supply. Aside from that, a pull-up resistor on the SDA/SCL lines and you're good to go.
I've used it myself and it worked well. A code example here:
http://www.cageybeesadventures.co.uk/main.php?page=burglar_alarm
It's based on the examples.
So, supper simple and reliable.
Regards,
The Cageybee
Sounds like neat stuff.
But the reason I ask is because I have a 433mhz receiver and transmitter I'm trying to book up together, but the instructions has it using the RX and TX I was wondering if there is another way (I already have RX and TX used with my computer)
What about software serial?
Ya, after some googling I found SoftwareSerial...
But I think VirtualWire is better (I think it's like SoftwareSerial but has built in sum checks and what not to ensure good transmission)
But the thing is I have a PICAXE-08M with the transmitter (trying to build a small, cheap remote).
Hope I can figure out what VirtualWire wants me to transmit (might have to use SoftwareSerial after all).
Hope you don't give me a hard time cause I mentioned I was using PICAXE (I mentioned I was using an Arduino in a PICAXE forum...it was ugly
)
Hope you don't give me a hard time cause I mentioned I was using PICAXE (I mentioned I was using an Arduino in a PICAXE forum...it was ugly)
I'm sure there is quite a few of us ex-picaxers here. I started with them and still think their little 8 pin job is perfect for minimum type applications. The picaxe probably has the lowest cost entry of any of the hobby type platforms I've seen, however being proprietary in nature they seem slow on updates, enhancements. And once one bytes the bullet and learns C, one finds there is no comparison in power and flexibility over BASIC.
Lefty
Thats what I don't like about PICAXE...BASIC ![]()
But I wish the Arduino program came with a simulator like the PICAXE programming editor does...saves you from one or two re-uploads
But I wish the Arduino program came with a simulator like the PICAXE programming editor does...saves you from one or two re-uploads
What, you haven't mastered the art of writing bug free code on the first upload yet? ![]()
ALL my code is bug free...until the first upload at which time it get worse with every iteration. ![]()