202620242023202220212020201920182017201620152014
2211152313307215210213462
newer 12 / 31 older

LAMEBOY - another ESP12 handheld | back home

2017-08-23 09:52:00

Parts are ordered, some of them over eBay, some of them "locally" at voelkner.de - they're basically conrad.de but with a different pricing ethos and a flatrate for shipping. The almost most expensive part I've ordered there, the TPS2113A for power muxing. Boards are ordered at @oshpark as well and with a little help they might be here even sooner :) Also, first time order at https://www.oshstencils.com/


LAMEBOY - another ESP12 handheld | added SD card slot and C button

2017-08-20 23:26:18

For that I had to move and rewire some stuff, the I2C grove connector now sits on the other side. The SD card found it's place close to the LCD connections and I was able to use the last pin of the ESP for CS of the SD card. Some labels had to be moved as well. The extra C button is more of a troubleshoot / bootloader thing for Gamebuino, but I've added it as some kind of shoulder button anyways. I thought it would make sense to have that SD card and button for supporting the gamebuino games. They won't work with pre-compiled hex files over SD card, since they are compiled for atmega328 chips, but some of them should be easy to install with the Arduino IDE.


I'm not sure why, but at some point I've decided to place the display upside down :D Since they're using adafruit libraries I'll still be able to rotate the display. Nice.


Nice. Last input on the PCF8574 is connected to the SD card connect detection switch pin. Totally overlooked that before. Pretty cool to actually wait and further design the board, instead of rushing orders.


LAMEBOY - another ESP12 handheld | inspirational projects / adaptable platforms

2017-08-20 15:39:35

https://iamzxlee.wordpress.com/2014/04/16/2048-on-arduino/ - why not make a fibonacci number version of it :D

http://gamebuino.com/wiki/index.php?title=Getting_started

http://gamebuino.com/wiki/index.php?title=Games they seem to be shared by hexes for the atmega328 to read, but there's also arduino code that I could compile. nice. I've added a C button to my design.

Seems like https://www.kickstarter.com/projects/albertgajsak/makerbuino-a-diy-game-console is a module based clone of a gamebuino.

https://github.com/tobiasbu/marduino

https://hackaday.io/project/3981-flappy-bird-on-arduino

stranger things badge | pretty neat idea from comments

2017-08-19 22:13:00

https://playground.arduino.cc/Code/ADCTouch

thanks @Clayton G. Hobbs , I'll look into that :)

stranger things badge | so it begins

2017-08-19 11:34:08

I've made some screenshots to get started, to anyone interested: watch episode 3 of season 1 to get colors and fonts and wallpaper colors!

hacking a smoke detector | parts considerations

2017-08-19 11:23:00

http://www.ti.com/lit/ds/symlink/tpl5111.pdf 35nA thing that controls pwr converter and shutdown via gpio. only works with up to 5v though, not nine volt battery. so minimal power conversion still would be necessary.

LAMEBOY - another ESP12 handheld | what's next

2017-08-18 01:24:33

This needs a generally tested, breadboarded prototype, or at least it should. I've added 2.2mm drill holes where I could for later case designs to screw on, but I'm not sure about them. A beast to layout and probably more to solder! Seems to make sense to get a stencil for the first time.

LAMEBOY - another ESP12 handheld | PCF8574 - wait what?

2017-08-16 00:52:16

Although I had my run on some designs using this chip, I had to check the datasheet again and noticed something weird. Everyones project I've seen just uses a button that pulls the pin to ground. But what can we observe here on P5? A pull-up resistor of 100kOhms pulls up the input, until  you push a switch that connects it to even more pull-ups? I should sleep and tomorrow remove my pull-up stuff from the board. 

https://www.mikrocontroller.net/articles/Port-Expander_PCF8574

#D1 Mini X-Pad Shield 

#HariFun#133 More I/O Madness 

#Portable Raspberry PI Zero 

LAMEBOY - another ESP12 handheld | audio research

2017-08-16 00:04:02

https://learn.adafruit.com/trinket-audio-player/sound-playback

http://www.technoblogy.com/show?QBB

http://www.cbmitapages.it/c64/6581.pdf

https://github.com/cybernesto/sid-arduino-lib

link drop for modding/repairing/hacking stuff | lab stuff

2017-08-11 10:51:17

I'll be in America from mid September to mid October, afterwards I'll buy some new lab furniture :)

Ikea Billy 0.8m width on 3.4m
4 billys 54euros each 
216 total 

zynthia - sequencer synthesizer | Rev2 boards are here

2017-08-10 22:26:10

I still have to update the OSHpark Board, there are some minor label changes (if it works at all, that is :D ):

C2 is a 10nF cap

C1 is a10uF cap


So this board should have all the bells and whistles it can:

K.I.T.T. - KNIGHT RIDER badge/brooch | already had to sell the first assembled one

2017-08-10 22:23:20

And for the money I've bought some more boards, this time black pcbs from dirtypcbs.com though - sorry to every other vendor, but please add eagle brd file support :D Anyway, I wanted to have some black K.I.T.T.s with red LEDs as well.

link drop for modding/repairing/hacking stuff | Leap Frog Music Player hack

2017-08-04 17:45:32

LCD Controller replacement 

scrapped, I have #LAMEBOY - another ESP12 handheld and neon pink 3D printing filament now, I don't need this anymore and it's already gone :D

K.I.T.T. - KNIGHT RIDER badge/brooch | Boards are here :)

2017-08-02 18:53:14

Ha! Fail...

2017-07-21 20:37:57

So I thought that my LiPo Chargers in form of 4056 modules are all weird, broken and not powerful enough, until I've noticed that my UNI-T UT61E multimeter isn't calibrated anymore(?)! Stupid me also calibrated other stuff like my Power Supply made from a buck down converter and a notebook PSU using that meter. I also thought my R8D8 power bank was off big time and the batteries were done, because I've continuously measured 3.8V on each cell with that multimeter... meh. Cheap multimeter now tells me I'm stupid. meh. 

Anyone any tips for voltage references? Or how I can recalibrate voltage without another multimeter?

[update] I've seem to programmed all my attiny13 for #FLUX capacitor trinket with 13V instead of 12V, thanks to my multimeter... meh. but hey, they work.

link drop for modding/repairing/hacking stuff | my 858D soldering station

2017-07-17 20:34:41

http://blog.spitzenpfeil.org/wordpress/projects/youyue-858d-hotair-station-modifications/

http://www.heartoftechnology.com/project-858d-hot-air-rework-station/

https://github.com/madworm/Youyue-858D-plus

FLUX capacitor trinket | So I've made myself an AVR resetter then

2017-07-16 20:37:38

to fix almost all my tiny13a's I had to build this, but it definitely fixed all 10 boards :) for the tinies you don't need any parallel connections, so it's basically SPI + 12V on reset. I've hooked up a boost converter, added a button and "some" LEDs (bicolor), worked them in the code and now basically have a "power on and fix" stand alone fuse resetter for soic Attinies. That's not highly specialised at all. BUT IT WORKS AND THEY WORK! Now I need to clean up my desk.


http://www.engbedded.com/fusecalc/
https://arduinodiy.wordpress.com/2015/05/16/high-voltage-programmingunbricking-for-attiny/



// AVR High-voltage Serial Fuse Reprogrammer
// Adapted from code and design by Paul Willoughby 03/20/2010
// http://www.rickety.us/2010/03/arduino-avr-high-voltage-serial-programmer/
// Fuse Calc:
//   http://www.engbedded.com/fusecalc/
// slightly edited by davedarko in 2017

#define  RST     13    // Output to level shifter for !RESET from transistor
#define  SCI     12    // Target Clock Input
#define  SDO     11    // Target Data Output
#define  SII     10    // Target Instruction Input
#define  SDI      9    // Target Data Input
#define  VCC      8    // Target VCC

#define  BUTTON   3    // Target VCC
#define  LED_RED  7    // Target VCC
#define  LED_GRN  5    // Target VCC

#define  HFUSE  0x747C
#define  LFUSE  0x646C
#define  EFUSE  0x666E

// Define ATTiny series signatures
#define  ATTINY13   0x9007  // L: 0x6A, H: 0xFF             8 pin
#define  ATTINY24   0x910B  // L: 0x62, H: 0xDF, E: 0xFF   14 pin
#define  ATTINY25   0x9108  // L: 0x62, H: 0xDF, E: 0xFF    8 pin
#define  ATTINY44   0x9207  // L: 0x62, H: 0xDF, E: 0xFFF  14 pin
#define  ATTINY45   0x9206  // L: 0x62, H: 0xDF, E: 0xFF    8 pin
#define  ATTINY84   0x930C  // L: 0x62, H: 0xDF, E: 0xFFF  14 pin
#define  ATTINY85   0x930B  // L: 0x62, H: 0xDF, E: 0xFF    8 pin

void setup() {
  pinMode(BUTTON, INPUT_PULLUP);
  pinMode(LED_GRN, OUTPUT);
  pinMode(LED_RED, OUTPUT);
  
  pinMode(VCC, OUTPUT);
  pinMode(RST, OUTPUT);
  pinMode(SDI, OUTPUT);
  pinMode(SII, OUTPUT);
  pinMode(SCI, OUTPUT);
  pinMode(SDO, OUTPUT);     // Configured as input when in programming mode
  digitalWrite(RST, HIGH);  // Level shifter is inverting, this shuts off 12V
  Serial.begin(19200);
}

void loop() {
  digitalWrite(LED_GRN, HIGH);
  digitalWrite(LED_RED, LOW);
  
  if (digitalRead(BUTTON) == LOW)
  {
    digitalWrite(LED_GRN, LOW);
    digitalWrite(LED_RED, HIGH);
    
    pinMode(SDO, OUTPUT);     // Set SDO to output
    digitalWrite(SDI, LOW);
    digitalWrite(SII, LOW);
    digitalWrite(SDO, LOW);
    digitalWrite(RST, HIGH);  // 12v Off
    digitalWrite(VCC, HIGH);  // Vcc On
    delayMicroseconds(20);
    digitalWrite(RST, LOW);   // 12v On
    delayMicroseconds(10);
    pinMode(SDO, INPUT);      // Set SDO to input
    delayMicroseconds(300);
    unsigned int sig = readSignature();
    Serial.print("Signature is: ");
    Serial.println(sig, HEX);
    readFuses();
    if (sig == ATTINY13) {
      writeFuse(LFUSE, 0x6A);
      writeFuse(HFUSE, 0xFF);
    } else if (sig == ATTINY24 || sig == ATTINY44 || sig == ATTINY84 ||
               sig == ATTINY25 || sig == ATTINY45 || sig == ATTINY85) {
      writeFuse(LFUSE, 0x62);
      writeFuse(HFUSE, 0xDF);
      writeFuse(EFUSE, 0xFF);
    }
    readFuses();
    digitalWrite(SCI, LOW);
    digitalWrite(VCC, LOW);    // Vcc Off
    digitalWrite(RST, HIGH);   // 12v Off
    delay(1000);
  }
}

byte shiftOut (byte val1, byte val2) {
  int inBits = 0;
  //Wait until SDO goes high
  while (!digitalRead(SDO))
    ;
  unsigned int dout = (unsigned int) val1 << 2;
  unsigned int iout = (unsigned int) val2 << 2;
   for (int ii = 10; ii >= 0; ii--)  {
    digitalWrite(SDI, !!(dout & (1 << ii)));
    digitalWrite(SII, !!(iout & (1 << ii)));
    inBits <<= 1;         inBits |= digitalRead(SDO);
     digitalWrite(SCI, HIGH);
     digitalWrite(SCI, LOW);
   } 
   return inBits >> 2;
}

void writeFuse (unsigned int fuse, byte val) {
  shiftOut(0x40, 0x4C);
  shiftOut( val, 0x2C);
  shiftOut(0x00, (byte) (fuse >> 8));
  shiftOut(0x00, (byte) fuse);
}

void readFuses () {
  byte val;
        shiftOut(0x04, 0x4C);  // LFuse
        shiftOut(0x00, 0x68);
  val = shiftOut(0x00, 0x6C);
  Serial.print("LFuse "); // this line may show up corrupted in some browsers it is a Serial.print("LFuse: ");
  Serial.print(val, HEX);
        shiftOut(0x04, 0x4C);  // HFuse
        shiftOut(0x00, 0x7A);
  val = shiftOut(0x00, 0x7E);
  Serial.print(", HFuse: ");
  Serial.print(val, HEX);
        shiftOut(0x04, 0x4C);  // EFuse
        shiftOut(0x00, 0x6A);
  val = shiftOut(0x00, 0x6E);
  Serial.print(", EFuse: ");
  Serial.println(val, HEX);
}

unsigned int readSignature () {
  unsigned int sig = 0;
  byte val;
  for (int ii = 1; ii < 3; ii++) {
          shiftOut(0x08, 0x4C);
          shiftOut(  ii, 0x0C);
          shiftOut(0x00, 0x68);
    val = shiftOut(0x00, 0x6C);
    sig = (sig << 8) + val;
  }
  return sig;
}

zynthia - sequencer synthesizer | Gaaaaah ... it was too close to midnight!

2017-07-13 23:33:39

Thanks to @al1 I'm now aware that I've mixed up the GND and VCC symbols from the schematics of @Elliot Williams :D So now it's corrected and everything looks even cleaner! Definitely will sleep on ordering this one (hopefully al1 will have another look, just to be sure) :D I'm not looking forward to the boards arrival - straight to the totem of failure, I guess.

FLUX capacitor trinket | Attiny13 woes

2017-07-13 22:01:20

Okay, here we go:

Left OSHPark board: attiny13a SSU - working

Right OSHPark board: attiny45 - working

all 10 green boards: attiny13a SU - not working

Red board: attiny13a SSU - not working (but same badge as left OP board - weird)

USB cable tester: attiny13a SSU - working

small OSHPark board: attiny13a SSU - no idea


out of 15 attiny13a boards I know that two are working :( meh. At first I thought The smaller tinies are definitely fake, but the datasheet says they're a possibility.


zynthia - sequencer synthesizer | smd version

2017-07-11 23:42:29

I came around to design an SMD version of the perfboard version :)

On board is:

- 8ch LED port

- 8ch potentiometer port

- counting up/down switch

- octade (binary) / decade switch

- synced pitch switch and potentiometer

- speed potentiometer

newer 12 / 31 older