• Time please!

    Simeonbradshaw02/16/2015 at 22:30 8 comments

    I had put off getting going with the RTC after reading about 'issues' others had had with the board I got. Eventually I just got on with it and was easier than expected.

    Setting the time was hampered slightly by the realisation that the time is set at compile time and then transferred. There's probably a clever way to set it over serial, but I went for timing the compile and upload and compensating for that (19secs) It's accurate to within one second which will do for me.

    Tidied up the clock code to try using one LED on the inner ring and two on the outer for the hour, so you get a triangle for the hour. For the minutes I've filled the outer ring proportionally. Looks ok but currently is only good for 2.5 mins accuracy.

    I'm going to try fading up the next pixel which should allow a guess at the time within 30 secs to the trained eye. May try some other options

    Maybe also add markers for 12,3,6,9

    I will add a second blinker, I think a radial sweep looks really cool but may get a bit distracting in normal use.

    Still to do is something interesting with the colours, alarm function, switch and a case.

  • Time please!

    Simeonbradshaw02/16/2015 at 22:30 0 comments

    I had put off getting going with the RTC after reading about 'issues' others had had with the board I got. Eventually I just got on with it and was easier than expected.

    Setting the time was hampered slightly by the realisation that the time is set at compile time and then transferred. There's probably a clever way to set it over serial, but I went for timing the compile and upload and compensating for that (19secs) It's accurate to within one second which will do for me.

    Tidied up the clock code to try using one LED on the inner ring and two on the outer for the hour, so you get a triangle for the hour. For the minutes I've filled the outer ring proportionally. Looks ok but currently is only good for 2.5 mins accuracy.

    I'm going to try fading up the next pixel which should allow a guess at the time within 30 secs to the trained eye. May try some other options

    Maybe also add markers for 12,3,6,9

    I will add a second blinker, I think a radial sweep looks really cool but may get a bit distracting in normal use.

    Still to do is something interesting with the colours, alarm function, switch and a case.

  • Getting warmer

    Simeonbradshaw02/12/2015 at 00:27 0 comments

    Added the temperature sensor and fiddled with that for an evening or two. Getting .1 degree celsius accuracy, calibrated against every other thermometer I could find.

    Tonight I moved that off the breadboard and added temperature as a display mode. Sort of. For now it just turns red if reading is higher than last, green if same, blue if lower. Might be fun for long exposure thermal imaging but will have to come up with a more useful display.

    Some progress!

  • memory problems

    Simeonbradshaw02/07/2015 at 23:59 0 comments

    Very quickly ran out of the trinkets 5k memory. Could optimise to not use floats and save 2k, but don't think it will save me.

    Have switched over to an old arduino Diecimilla (ATMega168) with 16k, works well after I figured an issue with uploading/reseting at right time.

    https://stackoverflow.com/questions/19765037/arduino-sketch-upload-issue-avrdude-stk500-recv-programmer-is-not-respondi/20735393#20735393?newreg=42a3dc1f81b3401ca54ca03bf5804f21

    If I end up needing more I'll look at a trinket pro for a few quid more ($to £ price in UK otherwise would just get one now).

  • Timing troubles

    Simeonbradshaw02/07/2015 at 18:24 0 comments

    Few hours fiddling with code this afternoon.

    Have dropped brightness to 1/32 of full power! Doesn't leave a lot of room for going dimmer.

    Deciding how to actually display the time is quite tricky in itself. I have an inner ring with 12 leds and outer with 24, so maybe display hours on the inner ring and 2.5 min intervals on the outer? Hmm.

    Thought about using wider 'hands' like using 3 pixels for the hour hand and fading brightness but it seems ambiguous and I want to be able to tell the time at a glance.

    Haven't broken out the RTC yet, but was trying to approximate a 1 sec sweep around the outer ring. 1000/24 is 41.66 so I tried using that as a delay value - way too fast. Trial and error led me to a value of 80ms, I'm not sure why this works.

    Evidently delay isn't suited to task unless you know how it takes to do everything else and I should look at millis() for more accuracy.

    Not going to worry too much about this, more concerned with how to see if I'm getting useful anything from the RTC (Trinket has no Serial for debugging)

    12sec timer (approx!):

  • Hello pixels

    Simeonbradshaw02/06/2015 at 23:12 3 comments

    Had a few hours today, so did basic Hellos for the trinket, then 12 led ring running off usb power, then both rings running off external 5v. Initially forgot to connect ground to trinket and got unpredictable results rom the chained rings, once I'd done that, all is good.

    They are super bright, like everyone says. Next tasks are to work out how to lower brightness, power trinket from same supply (currently usb), play with some ideas for displaying time and get the RTC hooked up.

    Another mode to think about - fake TV holiday mode, for when you are away, a few hours of random colours to simulate a TV set.

  • link dump –

    Simeonbradshaw02/02/2015 at 22:27 0 comments

    Some links for when I need them:

    Trinket pages at adafruit

    NeoPixel pages at adafruit

    Tiny RTC Module

    MPU-6050 Gyro/Accelerometer

    LM335Z Temp sensor code example

    Need to solder pins on and tin some jumper wires or dig out some single core wire. I'll try and do that this week :)

    May get sidetracked by setting up some home brew, using a temp sensor/relay/heatbelt combo my brother made me.