Arduino

From: Chris (CHRISSS) 2 Apr 2015 00:23
To: ALL367 of 542
I've had some success with the barebones Atmel chip. I plugged it into the breadboard and tried to connect with AVRDude and nothing happened. Silly me, I didn't connect the crystal. It has an Uno bootloader so was expecting 16MHz.

I've set the fuse bits so it can run off it's internal clock, pulled the crystal out and AVRDude connecting now. Just need to work out how to program it now or which boot loader to give it.
From: Chris (CHRISSS) 2 Apr 2015 00:51
To: ALL368 of 542
/Much/ better. 28uA when using the same sleep test. Wonder if I can get it down further.
From: Chris (CHRISSS) 3 Apr 2015 01:16
To: ALL369 of 542
Ive done a little bit of testing tonight. Running off the batteries I got a powrr consumption of 22uA. When I connected the battery to the 3.3av step up and used that to power the Atmel it increased to 81uA. 4 times as much.
From: Chris (CHRISSS) 4 Apr 2015 09:26
To: ALL370 of 542
I was playing around with my barebones last night (YJ), programming it with my USBasp. It was programming fine but as soon as it reset to actually run the sketch nothing happened. It would occasionally work when I switched the jumper on the USBasp to 5V instead of 3.3V.

Strangley plugging it into the battery worked fine. I think I shorted something on the programmer (I plugged the + and - into the - on the breadboard) and broke something on it.

Had another 1 (supposed to be 2, only 1 turned up) Atmel chip turn up but couldn't get that one to work at all.
From: Chris (CHRISSS) 5 Apr 2015 00:36
To: ALL371 of 542
This has been driving me nuts. I've been modifying the examples for the temperature sensor and radio to test switching them on and off and I could get them working. When I added it to my temp logger code things didn't work. AARRGGHHH!!

I /think/ I may have finally cracked it though. Not sure it is working 100% reliably though, I will have to test that. But I have something on a breadboard that consumes about 4uA when sleeping. Should last a while on batteries.

The radio works fine. It was the temperature sensor that was the pain! The 3.3V step up uses about 90uA not doing anything so I didn't want that going all the time.
From: Chris (CHRISSS) 8 Apr 2015 09:56
To: ALL372 of 542
I had forgotten I'd ordered this. I think I must have done it when I'd had too much wine. Turned up this morning. 10x Atmega328ps and crystals, caps, etc.
EDITED: 8 Apr 2015 09:57 by CHRISSS
From: ANT_THOMAS 8 Apr 2015 10:50
To: Chris (CHRISSS) 373 of 542
How much does that work out per complete unit?
EDITED: 8 Apr 2015 11:02 by ANT_THOMAS
From: Chris (CHRISSS) 8 Apr 2015 11:05
To: ANT_THOMAS 374 of 542
£1.99 each from the UK.
EDITED: 8 Apr 2015 11:05 by CHRISSS
From: ledlightmake (SUNJIMMY) 2 May 2015 02:28
To: Chris (CHRISSS) 375 of 542
I've also control  Light in the bedroom
(http://www.ledlightmake.com/led-lamp-c-77_78/e27-led-bulb5w-multicolored-rgb-16-colorwith-remote-control-p-203.html)with MCU(PIC12F675).
APPROVED: 2 May 2015 09:31 by MATT
From: Chris (CHRISSS)13 May 2015 08:20
To: ALL376 of 542
28 days later. No zombies. Wireless sensor still going strong. Should get at least another 2 months from it.

Added some CSS to my boiler interface so looks a little better. No mountains in the screenshot for Pete though.
From: Peter (BOUGHTONP)13 May 2015 22:33
To: Chris (CHRISSS) 377 of 542
NoSnowy :C
From: Chris (CHRISSS)13 May 2015 22:41
To: Peter (BOUGHTONP) 378 of 542
I like snowy mountains. Do you fancy a ski?
From: Peter (BOUGHTONP)13 May 2015 22:52
To: Chris (CHRISSS) 379 of 542
Nah, we're just good friends; it already has a partner, and I wouldn't want to get between them.
From: Chris (CHRISSS)14 May 2015 00:03
To: Peter (BOUGHTONP) 380 of 542
You don't want to upset a ski. I hear they can be dangerous and might kill you.
From: ANT_THOMAS27 May 2015 00:06
To: ALL381 of 542
Well after not sorting the board for my timezone map I decided to do something useful with some of the LEDs. I made a dimable strip to go behind the bed-head. It worked quite well so I made a permanent board. Though they're bright white LEDs so it's a bit clinical.

Controlled via my home automation web remote, which tells a Raspberry Pi to transmit a 433 MHz signal. Different signals give different results. 100%/80%/60%/40%/20%/Off and Up & Down (by 10 units on the PWM scale).

Test breadboard:


Permanent board:
 

It is probably my best soldering attempt to date. Only made one mistake which was easily fixed.

Testing:
From: Serg (NUKKLEAR) 3 Jun 2015 09:37
To: ANT_THOMAS 382 of 542
I take it it's linked to a g-sensor bolted to the bed and it decides what brightness it shines at depending on... you know...?
 :-O
From: ANT_THOMAS 3 Jun 2015 09:43
To: Serg (NUKKLEAR) 383 of 542
 (hippo)
From: Chris (CHRISSS)27 Jun 2015 17:26
To: ALL384 of 542
Well my battery optimising was worth it. My temp sensor has been running for 2.5 months on 2 AAs. I'm not sure if I checked it at the start, I probably did, but since the 24th of April the battery has stayed at 2.9V. It wouldn't make a very interesting graph.
From: ANT_THOMAS27 Jun 2015 17:36
To: Chris (CHRISSS) 385 of 542
How often are you transmitting? Is this using an RF24 transmitter?
From: Chris (CHRISSS)27 Jun 2015 18:04
To: ANT_THOMAS 386 of 542
Yup, using a nRF24L01+. Transmits between every minute and, er, 7 or 8 minutes. Depends if the temp has changed since last check.