
I'll try to toaster oven solder them in the near future.
| 2026 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | 2016 | 2015 | 2014 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 2 | 11 | 15 | 23 | 13 | 30 | 72 | 152 | 102 | 134 | 62 |

I'll try to toaster oven solder them in the near future.
so I started this wiring mess, and I think for doing this I should reassign the pins first for better connecting. So whenever I remember to print this, I'll update and upload the designs. Just looking at it, I could remove the A6 and A7 pins out of that messy area. This setup would leave me with two analog inputs and a serial connection. I also ordered some IC sockets for the displays, 12pins where hard (read: not) to find, 24 where to special for my taste - so I ordered 8pin IC sockets that are chainable.

After some awesome iterations and mouse clicks of other persons (see comments for credit) - we got this result:




So I just checked my mail and this is what I got:
I have to make a little phone mount for my cell phone to record some mailbag videos (it's just easier to open stuff with two hands).
With 4 of HP QDSP-6064 bubble displays in a drawer I felt ready to do something with them and the "Clocks for Social Good" - call on hackaday.com finally got me going. It took me 2 hours to design this little shield, nice practice! It also costs me only about 5USD, since I have all the other parts around. Sorry for mixing 1206 and 0603 parts, but that was what I had - feel free to change it, if you want to use this.
Since this project was created around the whole "Ahmed takes a clock apart, brings it to school and get's arrested" - incident, there's the obligatory hashtag for that period of time on it.
Revision Notes
[UPDATE - 1] And of course, I forgot to connect the IIC lines from the LM75 to the arduino. It is now fixed in the github files.
[UPDATE - 2] you didn't actually think I took the right pins on the pro trinket for that, did you? it's now connected to A4 and A5, not A6 and A7 - sorry for that.



First cut off a very clean and not bended stripe of copper tape

carefully peal it off and glue it to the sticky side of the capton tape

Fixate the toner transfer paper to the sheet

Release the from the tape with water

check traces - WIN
etch it

looking good!


I thought about using the Talkie library for arduino with this module, inspired by #Gas Sensor For Emergency Workers , but it is written for 16 MHz and I would have to deal with timers (again). 16MHz resonators are ordered - although I'm not certain that the atmega32L will work properly at 16MHz and 2.8V. I will look into that, but will also order 8MHz resonators as well and maybe a new LDO for 3.3v? I'm also waiting for some 2x3 pin headers for easier programming via an ISP connector and might make a labeled board... idk.
I just found a pretty awesome instructables.com tutorial that shows how to make an iris. I'm really fascinated by this but am wondering, if it wouldn't be a total overkill. But just the thought of having an Iris reacting to light shining on it is awesome.
http://www.instructables.com/id/How-to-make-a-12-leaves-Mechanical-Irirs/?ALLSTEPS
So the code from last time didn't work at all, when I woke up the blue LEDs where totally dim. I've check the datasheet for the attiny45 and noticed once again - what works on an arduino must not work on a board using non-atmega328s. I hooked up my new UNI-T UT61E and measured 200uA - not the 0.1uA I've expected to see. With the help of the gist from JChristensen I verified (read copied) my code for the power down and measured a success - yes it's measurable - 0.1uA !
/*
Things to safe power, according to datasheet:
- turn off adc (not needed for LEDs)
- turn off brown out detection (BOD)
- turn off analog comparator
- turn off internal voltage reference
- turn off watchdog timer
- disable port pins per register
With the help of JChristensen/AVR Sleep
https://gist.github.com/JChristensen/5616922
*/
#include <avr/sleep.h>
#define BODS 7 //BOD Sleep bit in MCUCR
#define BODSE 2 //BOD Sleep enable bit in MCUCR
int leds[] = {4,0,1,2};
void setup()
{
for (int i=0; i<4; i++)
{
pinMode(leds[i], OUTPUT);
digitalWrite(leds[i], HIGH);
delay(200);
digitalWrite(leds[i], LOW);
delay(200);
}
die_until_reset();
}
void loop() { }
void die_until_reset()
{
byte mcucr1, mcucr2;
set_sleep_mode(SLEEP_MODE_PWR_DOWN);
sleep_enable();
MCUCR &= ~(_BV(ISC01) | _BV(ISC00)); //INT0 on low level
ADCSRA &= ~_BV(ADEN); //disable ADC
cli(); //stop interrupts to ensure the BOD timed sequence executes as required
mcucr1 = MCUCR | _BV(BODS) | _BV(BODSE); //turn off the brown-out detector
mcucr2 = mcucr1 & ~_BV(BODSE); //if the MCU does not have BOD disable capability,
MCUCR = mcucr1; // this code has no effect
MCUCR = mcucr2;
sleep_cpu();
}
Using the attiny15 footprint/part in eagle from the atmel library for the attiny45 is not right, because B4 and B3 are reversed and it's not the first time I noticed that. But this time I just went in and changed the part in the library. Muahaha. Evil, I know. PCB is updated (again), "code" is here:
#include <avr/sleep.h>
int leds[] = {0,1,2,4};
void setup()
{
for (int i=0; i<4; i++)
{
pinMode(leds[i], OUTPUT);
digitalWrite(leds[i], HIGH);
delay(200);
digitalWrite(leds[i], LOW);
delay(200);
}
set_sleep_mode(SLEEP_MODE_PWR_DOWN);
sleep_enable();
sleep_mode();
}
void loop() { }
I can't believe that I will say this, but there are some really annoying things with this design. The first and most obvious: the usb connectors and the battery connector aren't on the same side! The second one is that the connectors should be plane with the pcb, so that the micro / mini port would be useable with the USB A ports soldered on. I should stop calling designs "final".

I "redesigned" the battery part for eagle and by turning it 90 degrees I was able to save some space.

[UPDATE] Seems like I have connected the wrong pin of the battery holder - I took one of those 5 holes meant for plus, but not the centered one - good thing that I've redesigned that holder.
So with the help of the code from #Portable Trollmaster 3000 I was able to set up the module in no time. It works on the atmega32 (no real surprise here). I've made some little changes to the program - I set the sending power all the way up with the help of the datasheet and also worked on the following function. This should make it easier to set the frequency.
void set_frequency(unsigned long frequency)
{
unsigned long factor = frequency / 8192;
unsigned int upper = (uint8_t) (factor >> 8);
unsigned int lower = (uint8_t) ((factor << 8) >>8);
Wire.beginTransmission(NS731_I2C_addr);
Wire.write((uint8_t) 0x0a);
Wire.write((uint8_t) lower); // lower 0XEA is 90.0 Mhz 77 / 33 for 108
Wire.write((uint8_t) upper); // upper 0X2A Change those values to change the frequency
Wire.endTransmission();
}
updated function, removed not needed type castings etc. (thanks to @al1 )
void set_frequency(unsigned long frequency)
{
unsigned long factor = frequency / 8192;
uint8_t upper = factor >> 8;
uint8_t lower = factor;
Wire.beginTransmission(NS731_I2C_addr);
Wire.write((uint8_t) 0x0a);
Wire.write(lower); // lower 0XEA is 90.0 Mhz 77 / 33 for 108
Wire.write(upper); // upper 0X2A Change those values to change the frequency
Wire.endTransmission();
}There actually is already a good pinout picture, but I wanted to correct the voltage and be on the safe side when it comes to copyrights - so I fired up inkscape.
int output_pin = 15;
int randNumber;
ISR (TIMER2_COMP_vect)
{
PORTD ^= ( 1 << PD7 );
}
void setup()
{
randomSeed(analogRead(0));
// set LED pin to ouput
DDRD = ( 1 << PD7 );
//CTC Modus
TCCR2 = (1 << WGM21);
//Prescaler 64
//3686400 / 64 / 440 = 131
TCCR2 |= (1 << CS20);
TCCR2 |= (1 << CS21);
//TCCR2 |= (1 << CS22);
//start with an A
OCR2 = 131 - 1;
//Enable Compare Interrupt
TIMSK |= (1<<OCIE2);
//Enable global Interrupts
sei();
}
void loop()
{
randNumber = random(256);
OCR2 = randNumber;
delay(250);
}I'm soldering one of the last batches of RFid readers for work, before we skip to a "professionally produced" version. To be honest, I'm a bit relieved that we are replacing the arduino + MC522 modules with something created by guys that actually know stuff about RFid. But on the other hand I can be a bit proud that these readers are working for 2 seasons now and with pretty decent results, knowing that they worked close to water (sometimes even in the water...) and in the sunlight and rain. In a way we are a hardware start up as well, even if we actually don't want to. I will soon release the design files etc. and tell some stories around it - actually looking forward to that.

Here's a video of it being alive on instagram... https://instagram.com/p/622Kl7sYtf/?taken-by=deefdarko
ordered... and just saw the mistake on the silkscreen... gnargh. Anyway, don't want to neglect this project - so I ordered them.

Way to many servos on a Johnny V head - 7 in total! Parts are designed in 123D Design, printed and corrected in file (cables... cables... cables)
The rest will be done once I have the rings and ultrasonic sensor :)


