Arduino

From: Chris (CHRISSS)18 Jan 2015 23:49
To: ALL184 of 542
Arduino alarm clock.

Lots of wires now. 3 buttons, LCD, transistor, shift register (only 3 pins required to arduino for LCD instead of 6), buzzer, RTC.



But no music. Should I add music?
EDITED: 19 Jan 2015 10:16 by CHRISSS
From: ANT_THOMAS19 Jan 2015 00:41
To: Chris (CHRISSS) 185 of 542
I've got a load of stuff on order from China. Including shift registers, hopefully they'll do what I want and give me a load of extra pwm capable outputs, I need about 24.
From: Chris (CHRISSS)19 Jan 2015 09:36
To: ANT_THOMAS 186 of 542
Gosh, that's a lot of PWM outputs. A shift register will give up to 8 outputs from 1 pin but I think you can chain them for more? No idea about PWM with shift registers though.

I'm still waiting for bits. Another Arduino and the wireless transceivers for the clock. Some bits have come quick and others taking long time.
EDITED: 19 Jan 2015 10:13 by CHRISSS
From: ANT_THOMAS19 Jan 2015 10:15
To: Chris (CHRISSS) 187 of 542
Yeah, I'll no doubt be waiting for the most important part of my bits to arrive last.

I should be able to daisy chain them to add more outputs. 24 PWM outputs needed for that many time zones, but shouldn't need that many due to the map, probably more like 18-20.
From: Chris (CHRISSS)19 Jan 2015 10:42
To: ANT_THOMAS 188 of 542
Cool, I assume time zones will vary the brightness as the light level changes in each zone.

Exciting to see what parcels have arrived each day, even if some are less exciting things like push buttons and transistors. Sian keeps complaining but nearly all of them have only been 99p. Not actually spent much at all.
EDITED: 19 Jan 2015 10:43 by CHRISSS
From: ANT_THOMAS19 Jan 2015 10:58
To: Chris (CHRISSS) 189 of 542
That's the one.

Map will be based on this - http://imgur.com/a/8iOvx

I had my idea then found out someone had done similar - http://imgur.com/a/zNdB0

Mine isn't going to use an RGB strip. Just some bright white strips for each zone. PWM used to control brightness. Also going to use an LDR to control overall brightness as the RGB one does, so it's not blindingly bright in the dark.

Well, that's the plan, we'll see if I actually manage to sort it.

So far my prototype works for dimming a row of LEDs and using an LDR to change overall brightness, but that's just using regular PWM.
From: Chris (CHRISSS)19 Jan 2015 11:46
To: ANT_THOMAS 190 of 542
That's pretty cool, I like that. Look forward to seeing it when it's done :)
From: ANT_THOMAS19 Jan 2015 12:02
To: Chris (CHRISSS) 191 of 542
I think I'll initially have the time zones set to dawn/dusk times around spring.

If there's enough space on the arduino I could have a more complete set of times, maybe covering 4 seasons. There's probably a way to calculate this and massively reduce the amount of code but I'm just using set values at the moment.

This doesn't account for the northern hemisphere being different to the southern. That would probably mean I'd need about 72 regions for it to look reasonable - 24 Northern, 24 Equatorial, 24 Southern. I think that would be overkill.
From: Chris (CHRISSS)19 Jan 2015 14:35
To: ANT_THOMAS 192 of 542
Not a great deal of memory available on the Arduino. Unless you added an SD card to it if the data takes up too much space. How much do you think you'd need for it? How much difference is there between the hemispheres?
From: ANT_THOMAS19 Jan 2015 15:00
To: Chris (CHRISSS) 193 of 542
There's definitely quite a bit at the extremes (summer/winter)

Today



June 19th

From: ANT_THOMAS19 Jan 2015 15:18
To: Chris (CHRISSS) 194 of 542
http://www.solarsystemscope.com/daylightmap/

Go there
Click Set Time
Press and hold the plus button on months and see how much it changes.

Or set it to 22nd March and pan through the hours, that's probably what I'll be going for.
EDITED: 19 Jan 2015 15:21 by ANT_THOMAS
From: Chris (CHRISSS)19 Jan 2015 15:40
To: ANT_THOMAS 195 of 542
Quite a lot then, yes. Worth doing on your map then ;)

Best way would be to use Einsien's equations for general relativity, give the Arduino the spacetime coordinates for the sun and every led on the map, and let it work it out. Simple :D
From: ANT_THOMAS19 Jan 2015 22:57
To: Chris (CHRISSS) 196 of 542
The RTCs arrived today (10 days) - annoyingly without any pins but I have a load of spares anyway

I've sorted the time side of things and it seems to be working on my small 6 LED setup.
From: Chris (CHRISSS)19 Jan 2015 23:12
To: ANT_THOMAS 197 of 542
Both my RTCs came without pins. One from this country with a battery and one from foreign. There are 2 sides the pins can go so maybe they leave it up to you to decide. They're nice and easy to use anyway. Not sure what to do with my spare yet.

I'm currently making a breakout board for my LCD screen with contrast pot, PWM transistor and shift register attached. It will make it much easier connecting it up to my Uno.
From: ANT_THOMAS19 Jan 2015 23:30
To: Chris (CHRISSS) 198 of 542
Sounds like the same type as mine (the cheapest!).

I didn't want them soldering, I just want the free pins!
From: Chris (CHRISSS)20 Jan 2015 00:09
To: ANT_THOMAS 199 of 542
Most of the bits I've bought have been the cheapest. So far no problems with them. These prototype soldering boards I've bought are very flimsy though.

So you wanted the pins for later, not for the RTC?
From: Chris (CHRISSS)20 Jan 2015 02:21
To: ALL200 of 542
Here is my LCD board. It's not pretty, front or back. But does it work? Not sure if it works yet. And a picture of my "workshop."
From: Chris (CHRISSS)20 Jan 2015 02:43
To: Chris (CHRISSS) 201 of 542
It works. Amazing. At first I thought something was wrong but I forgot to adjust the contrast. This will make LCD connections so much easier and quicker, and probably reliable.

It took far longer to make than I thought it would though.
EDITED: 20 Jan 2015 02:44 by CHRISSS
From: 99% of gargoyles look like (MR_BASTARD)20 Jan 2015 08:54
To: Chris (CHRISSS) 202 of 542
The banana peel's a nice touch. Is it just for decoration, or does it function when you wire it up?
From: Chris (CHRISSS)20 Jan 2015 09:21
To: 99% of gargoyles look like (MR_BASTARD) 203 of 542
I use it for wiping off the flux after soldering.