Arduino

From: Chris (CHRISSS) 2 Jan 2015 21:11
To: ALL104 of 542
Looks like the tri colour LED that comes with it doesn't work :( It has red, green and "blur" colours.
From: Chris (CHRISSS) 2 Jan 2015 21:16
To: ALL105 of 542
I was going to edit my last post but when I tried I got a blank post without what I had already written.

If I connect one of the output pins to ground and put the ground from the Arduino to one of the colour pins on the LED module the LED lights. That doens't seem right.
From: Chris (CHRISSS) 2 Jan 2015 22:48
To: ALL106 of 542
I've also just realised that I was probably running the LEDs with to much current. I had connected the resistors in parallel instead of series in the circuit. Oops.
From: Chris (CHRISSS) 3 Jan 2015 18:51
To: ALL107 of 542
How can I get two arduinos to communicate wirelessly?

I have an idea for sommat which would need two (maybe three (or you could use more I guess)) to talk to each other. Only have 1 Arduino at the mo anyway so can get the first bit working at least.
From: koswix 3 Jan 2015 20:40
To: Chris (CHRISSS) 108 of 542
What sort of distance? Xbees have a good reputation I think.
From: Chris (CHRISSS) 3 Jan 2015 20:50
To: koswix 109 of 542
Probably a couple of metres. I will look at Xbees.

I've seen wireless serial RF devices or WiFi modules on eBay. Wouldn't mind which type, just need to send a signal from one to the other. Could WiFi ones connect together or would it need to go through router?
From: koswix 3 Jan 2015 21:15
To: Chris (CHRISSS) 110 of 542
Only used Xbees for simple serial point to point stuff, I don't really know the differences between the umpteen different versions. They're meant for mesh networking so I imagine it could do it peer to peer.
From: ANT_THOMAS 3 Jan 2015 22:29
To: koswix Chris (CHRISSS) 111 of 542
Have a look at nRF24L01+ adapters. Really cheap on ebay. You can get ones with a tiny onboard antenna (99p) or slightly more expensive ones with a bigger screw-on antenna (~£3).

Edit : If you want to buy some on ebay the cheap ones come from China/HK. Also, since you want more than one search for something like "nRF24L01 -1pcs pcs" to get some good prices for multiple adapters.
EDITED: 3 Jan 2015 22:33 by ANT_THOMAS
From: Chris (CHRISSS) 3 Jan 2015 22:59
To: ANT_THOMAS 112 of 542
Those are the ones I saw on eBay earlier. I think I will look into how they work. Thanks.

Apparently the screw on aerial types can transmit up to 1km. Long far.
From: ANT_THOMAS 3 Jan 2015 23:03
To: Chris (CHRISSS) 113 of 542
Yeah, they're supposed to get some pretty impressive transmission distances.

I've got one with a massive antenna connected to a Raspberry Pi and a couple of arduinos with the tiny antenna adapters around the house transmitting temperatures. It might be because mine are indoor with decent thick walls but I've definitely seen some range issues. It could also be 2.4 GHz interference. I imagine in an open space you'd get great range.
EDITED: 3 Jan 2015 23:06 by ANT_THOMAS
From: Chris (CHRISSS) 3 Jan 2015 23:35
To: ANT_THOMAS 114 of 542
It does say unobstructed. The ones with the small antennas don't seem to mention range. Our house is a mix of plasterboard upstairs and brick downstairs.

Are they easy to use?
From: ANT_THOMAS 4 Jan 2015 00:14
To: Chris (CHRISSS) 115 of 542
I haven't had 2 arduinos communicating with them (because that wasn't my aim) so I can't say if that's easy.

Getting them to communicate with the RPi wasn't too easy. IIRC the arduino side of things was fairly easy but the RPi wasn't straight forward, I had to email the person who wrote some examples for advice, I was clueless with what I needed to do.

The arduino side of my setup is pretty "dumb", all it does is transmit a payload of the temperature and another number every 10 seconds or so. It was getting the RPi to receive them that was harder.

You're probably best getting a couple, using some example sketches and getting something working, then adapt it to what you want to actually do.
From: Chris (CHRISSS) 4 Jan 2015 11:10
To: ANT_THOMAS 116 of 542
Ah, Arduino to Pi, I see. Hopefully it will be easier Uno to Uno. Which cheap Arduinos did you buy? Was it the little mini ones from eBay?

Had a play with the 2 line LCD in the kit last night. Made a scrolling display (autoScroll only seemed to scroll both lines) and realised the pot for the contrast is definitely needed which may explain why my 4 line didn't show anything with the Pi, it may actually have been working.

Also any idea about debugging sketches? I put too many for loops inside my scrolling display code. Took a while to work out what I'd done.
From: ANT_THOMAS 4 Jan 2015 11:44
To: Chris (CHRISSS) 117 of 542
There's two types of the cheap small arduino clones about. There's the Nano and the Pro Mini.

I've got some of both but I much prefer the Nano type. They come with USB serial built in and possibly more pinouts, slightly larger and marginally more expensive I think. You can power over the USB connection too which is really useful because I've got a load of mini-USB phone chargers from old phones lying around. I believe you'll need a Nano for the nRF24 adapters because the Pro Minis I have don't have a 3.3V pin which is required.

If I've still got a spare Nano I might make another wireless temperature sensor today for a different room.
EDITED: 4 Jan 2015 11:45 by ANT_THOMAS
From: Chris (CHRISSS) 4 Jan 2015 12:12
To: ANT_THOMAS 118 of 542
Cheers Ant. Helpul info there.

There doesn't seem to be a huge difference in price between the cheapest minis and nanos. The USB socket does sound useful though. Some of the mini boards say switchable between 3.3V and 5V.

How many Arduinos do you have?
From: ANT_THOMAS 4 Jan 2015 12:24
To: Chris (CHRISSS) 119 of 542
The minis require you to have a serial adapter of some sort to load sketches to it. Once loaded you don't need the serial adapter connected anymore but I found this to be a pain to get working first time every time. The USB nanos work first time, much less hassle.

I have 4 in use and I think I bought 5 nanos and 5 pro minis a while back.
EDITED: 4 Jan 2015 12:27 by ANT_THOMAS
From: Chris (CHRISSS) 4 Jan 2015 13:36
To: ANT_THOMAS 120 of 542
That does sound easier. I'm sure I have a few mini USB leads around too. Just over £2 for an unsoldered board. I might order a couple of them and wireless modules and maybe some temp sensors too. If I had more time I could get carried away with these.
From: ANT_THOMAS 4 Jan 2015 13:50
To: Chris (CHRISSS) 121 of 542
Not sure if all mine came with USB cables but some I have bought did, I was fairly impressed since I was just expecting board and pins.
From: Chris (CHRISSS) 4 Jan 2015 15:06
To: ANT_THOMAS 122 of 542
About £2.80 for a nano with a cable. Cheap. People probably pay about 5 or 10 times that just for a USB cable in some shops.
From: Chris (CHRISSS) 5 Jan 2015 10:58
To: ALL123 of 542
Things I have ordered so far:
2 nanos
4 wireless transceivers
1 real time clock
2 temp sensors