Arduino

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
From: Chris (CHRISSS) 5 Jan 2015 11:42
To: ALL124 of 542
One more question (for now): I can probably get my hands on quite a high capacity 18V Li Ion battery from an old cordless drill.

How could I use that with an Arduino. External voltage regulator or sommat?
From: ANT_THOMAS 5 Jan 2015 11:58
To: Chris (CHRISSS) 125 of 542
Most Arduinos can take 6-20V on the Vin so you shouldn't need a regulator (there's one onboard).
From: Chris (CHRISSS) 5 Jan 2015 12:17
To: ANT_THOMAS 126 of 542
Both my SainSmart and the nanos say up to 12V.
From: Chris (CHRISSS) 5 Jan 2015 13:03
To: ANT_THOMAS 127 of 542
Had a quick look on Google. Depends how much current the board will be consuming. If it's not doing too much it should be ok with the 18V, otherwise it would need another regulator that could handle tthe current.
From: Chris (CHRISSS) 6 Jan 2015 14:03
To: ANT_THOMAS 128 of 542
A quick question about the mini boards: what cable is required to program the board? Is it just a cable or is there a circuit board between the two?

I might buy an 8MHz mini to make a custom transmitter to use my Taranis controller with my Hubsan X4.
From: ANT_THOMAS 6 Jan 2015 14:08
To: Chris (CHRISSS) 129 of 542
The Pro Minis (without USB) need a USB to Serial (FT232) adapter of some sort to program them.

Because my adapter doesn't have the correct reset pin or something like that it's a pain to use, I've got to reset the board at exactly the right point to get sketches to load.
From: ANT_THOMAS 6 Jan 2015 14:10
To: Chris (CHRISSS) 130 of 542
From: Chris (CHRISSS) 6 Jan 2015 15:14
To: ANT_THOMAS 131 of 542
Much obliged once again Anthony. I'll have a look at that video later. Too many things I want to do already that I don't have parts for.
From: Chris (CHRISSS) 7 Jan 2015 21:29
To: ALL132 of 542
A little graph of the temp monitoring using a LM35. The temp at the start was in my bedroom, dropped when I brought the laptop into the kitchen. Went back up with the oven on. The drop down to 6°C ish was when I put two frozen peas either side of the sensor.

I have quite a few things on the way from China <twiddles thumbs>
Attachments:
From: 99% of gargoyles look like (MR_BASTARD) 7 Jan 2015 21:33
To: Chris (CHRISSS) 133 of 542
And to think our forefathers had to go down the pub and play skittles for laughs. Indeed, we are reaching an apex of civilisation.
From: koswix 7 Jan 2015 22:28
To: 99% of gargoyles look like (MR_BASTARD) 134 of 542
There's still a skittle pub in Edinburgh, it's awesome.