all years
202620242023202220212020201920182017201620152014
2211152313307215210213462
newer 3 / 7 older

Mailbag #001

2015-09-18 11:56:30

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).

LED displays on Arduinos - a collection | Arduino Pro Trinket - bubble display

2015-09-17 11:32:25

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.


flexible pcbs | second test: sticky side to sticky side

2015-09-15 12:56:06

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 - FAIL

check traces - WIN

etch it

looking good!

way too much glue

I have to find out what tape has more glue and get rid of it and/or find a glue that is acetone resistant

MMR-70 - cheap radio module | pimping the board

2015-09-12 17:51:32

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.

Johnny IV | mechanical iris

2015-09-11 09:57:04

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

USB cable tester | verify your results

2015-09-09 09:38:53

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();
}

USB cable tester | code and me whining and winning

2015-09-08 22:21:13

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() { }

USB cable tester | this project... like... so annoying

2015-09-08 14:10:15

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.

MMR-70 - cheap radio module | program progress

2015-09-04 10:50:23

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(); 
}

MMR-70 - cheap radio module | Video

2015-09-03 18:10:14

https://instagram.com/p/7LKkQHsYti/

MMR-70 - cheap radio module | Pinout of the module

2015-09-03 14:57:14

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.

MMR-70 - cheap radio module | sketch for timer

2015-08-31 14:33:40
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 a fan of your fan | also works as a fume fan

2015-08-28 10:52:34

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.

Johnny IV | mapped the servos for animation

2015-08-26 20:48:46

Here's a video of it being alive on instagram... https://instagram.com/p/622Kl7sYtf/?taken-by=deefdarko

USB cable tester | final design (almost)

2015-08-25 21:32:37

ordered... and just saw the mistake on the silkscreen... gnargh. Anyway, don't want to neglect this project - so I ordered them.

Johnny IV | first draft of eye brows

2015-08-25 16:21:34

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 :)

433MHz canon remote | future improvements

2015-08-25 13:03:47

Ignore this ESP8266 board | some updates on the 3.3V version

2015-08-24 16:03:35

Ignore this ESP8266 board | dirtyPCBs are in

2015-08-17 16:14:11

A bit late, but I like them :)

I'm a fan of your fan | a handle and a base mount

2015-08-12 21:16:14

These parts are printing right now - I'll have to find a base worthy thing yet, where I would screw that center piece on to and the controller board as well.

newer 3 / 7 older