all years
202620242023202220212020201920182017201620152014
2211152313307215210213462
newer 2 / 8 older

LAMEBOY - another ESP12 handheld | A Sunday's work

2017-10-22 21:09:09

fresh new (not yet working) version on the top left I call "Kürby", since it's orange with a green top - a pumpkin in German is "Kürbis" and it almost sounds like Kirby. 

Can't tell why it's not working yet, but also am tired and want to clean up the desk...


Well that clean desk motivated me to check my AP2112K layout on my Rev2 board - let's say that escalated quickly :D Found out that my enable pin was connected to the switch and the other side connected to VCC, not VREG_IN. There's no VCC to turn on VCC :D luckily it's just a bogde wire and a little cut, if anyone bought this. 

Aisler vs. OSHPark comparison

2017-10-21 12:25:59

Update 23rd of October

Aisler now offers free shipping!


Please keep in mind that I was able to participate in some test runs and beta tests, some anecdotes are hidden in this write up. They're definitely safe to try out :)

I've met @Felix Plitzko at the MakerFaire Hannover this year and we've talked about boards that AISLER has already made for the company I work for. Felix told me he likes the #LAMEBOY and offered me a free round of boards and a metal stencil to compare. Here is an overview of their service compared to OSH Park. They don't make it a secret that OSH Park is definitely an inspiration. 

OSH ParkAISLER
Prices for shipping
to and buying in Germany
20.24€ * 22.17€ 28.17€ (-6.00€ for shipping)
Boards33
Layer parameters2 (0.8mm, 1.6mm)
4 (1.6mm)
2 (1.6mm)
4 layers in beta
Design Rules6mil trace clearance
6mil trace width
10mil drill size
5mil annular ring
4mil trace clearance
4mil trace width
8mil drill size
10+drill size mil min pad 
color of PCBspurpleolive green  (sadly not orange)
FinishENIGENIG
Design file supporteagle, KiCad, gerbereagle, KiCad, fritzing, gerber
production time12 calendar days + shipping12 days + shipping

*no tolls bc below import tax minimum and with free shipping

The first picture shows a round of the first version of Lameboy, some parts are replaced now or moved or deleted (kind of sad about the steel stencil). I swear I replaced the OSH Park logo on the AISLER boards with an AISLER appropriate text, but I must have mixed files up. You can see a yellow "x- out" sticker, where I currently have no idea what it means, but the board's pads look pretty pierced, may be from electrical testing? The typical "byte marks" on the OSH Park boards (7 here) are sometimes slightly in the board, AISLER gives you a clean bulge.  

As you can see here the OSH Park silkscreen had some issues in this 0.8mm run, the C and RST labels of the buttons aren't printed well, where as the AISLER board is slightly offset to the bottom, so the OFF and ON Lines are cut in. The eyes of the skull look bigger on the AISLER board.

In the second round of the OSH Park boards (as seen on the right of the following image) there are no errors in the silkscreen though.

The stencil of AISLER is looking pretty good, position it right and you can see only gold. 

Overall I'm pretty happy with the quality of the boards since day one, but I also had some bad luck with orders. On my very first run of boards for the company I work for, I had the ground plane peeking out next to every pin, never happened with any other board manufacturer but was my fault and I could have seen it in the high resolution renders on the page. Since then they did a lot of magic to process the boards before they go in production. They seem to constantly update and upgrade their services and product, which is great if you think about it, but it might happen that you get a wild outline or your order of a "non public test run of steel stencils" (!) gets lost in an excel file :D (they don't use excel for that, now that it's public!!) But as with OSH Park the staff is communicative and interested in how they can improve and make it easier for you to make things. They're also in the process of adding PCB assembly to their services. 

Their page gives you version management and the option to change board designs up until manufacturing begins, something that one person or another might miss in OSH Park (although production at OSH Park starts way sooner due to higher demand and a nice mail to support@oshpark.com might fix file problems). If they manage to nail the "order 3 complete prototypes" then AISLER would win the hearts by a lot of people, IMHO. 

LAMEBOY - another ESP12 handheld | Withdrawing from prize

2017-10-20 15:35:44

I just can't handle everything right now, it's all been too much lately and this hobby feels a lot more like work lately. It's supposed to be fun though, right?

LAMEBOY - another ESP12 handheld | monochrome display going grayscale?

2017-10-13 03:31:27

[update] random thought: there is a global brightness setting, why not play with that to get greyscale?

So I tried some greyscaling on the LCD, but my ESP code runs out of sync with the LCD that updates every pixel in a certain frequency that I don't know. So I get a sometimes grey, sometimes not so grey value and an analog TV style walking distortion on it.

https://www.sparkfun.com/datasheets/LCD/Monochrome/Nokia5110.pdf 

According to this datasheet there is an OSC pin, that accepts an external clock for displaying. So here comes the "what if": could I use an attiny and spit out a frequency of around 32kHz and a "frame" / vsync pulse for the esp to check / interrupt on? that would be so cool. I could use the data in / MISO for that (tiny would be connected to CS of display as well). 

Oh the stuff you think about when you have no lab / hardware :D 


http://gamebuino.com/wiki/index.php?title=Grey-scale_rendering

Cool side note, the SSD1305 that's on the 1.54 OLED has exactly that integrated. [doesn't seem to be broken out on the cable though] Also from the datasheet: "There are 4-color selections to support monochrome or area color OLED/PLED." -> I think that has something to do with those split oleds, where there's an orange bar on top of the blue display etc.
https://cdn-shop.adafruit.com/datasheets/SSD1305.pdf


found a SSD1327 controlled OLED that's 128x64 and monochrome.

https://www.generationrobots.com/media/Ecran_OLED_0_96/SSD1327_datasheet.pdf

https://www.aliexpress.com/item/SSD1327OLED12864/32833020568.html

LAMEBOY - another ESP12 handheld | about using that SD card for programs

2017-10-11 02:51:48

https://tech.scargill.net/tag/another-way-to-update-flash-esp8266/

https://tech.scargill.net/espressif-save-to-flash-an-alternative/

https://github.com/raburton/rboot

http://www.esp8266.com/wiki/doku.php?id=esp8266_memory_map

https://github.com/esp8266/esp8266-wiki/wiki/Memory-Map

So if I get it this right, I need a bootloader that starts with reading the sd card to check for roms to start. Then I'd have to write that binary file into a 1MB area of the spi flash and start from there, if that is possible. Every program would have to be compiled for that sector then? Or is there a start pointer and a soft reset? 

Let's call it homework.

further homework

http://bbs.espressif.com/viewtopic.php?t=202

http://bbs.espressif.com/viewtopic.php?f=15&t=56

LAMEBOY - another ESP12 handheld | current todo list

2017-10-10 20:58:11

LAMEBOY - another ESP12 handheld | deauther success

2017-10-09 04:18:12

I was able to setup the Arduino IDE within my ubuntu virtualbox to compile the deauther program by spacehuhn (https://github.com/spacehuhn/esp8266_deauther) - now I can rewrite the display stuff to work with my hardware. Nice. I wanted a separate IDE for that, to make the necessary changes and also be able to work with the latest ESP8266 core on my mac. Probably would have been better with an OLED arduboy clone, since it's already working with that. Wuah, poor me, I know.

Going to make a hex once done, so it's easier to put it on (probably). I need software help at one point.


Update, display and buttons are now integrated as well, not just the server is running :) 

LAMEBOY - another ESP12 handheld | thoughts about platforms

2017-10-08 16:21:46

Looking at my "competition" and what's on the market right now, there are two major Arduino handheld gaming platforms at the moment of writing, that pop out


Arduboy

if you want to get one cheap, here's a link to their current kickstarter - special editions are already gone, but you can still get a standard version cheaper then everywhere else. (https://www.kickstarter.com/projects/903888394/arduventure-on-arduboy)

PROs 

CONs


Gamebuino (also Makerbuino)

PROs

CONs


Conclusions for this project

There is a 1.54 inch OLED display, that seems reasonable in price to work with and maybe switch to the ESP32 to make it slightly easier to deal with buttons etc. - although I'm not sure what that means for deauther support (I think that's only possible with the ESP8266 right now, correct me if I'm wrong). But I'm pretty happy with the state of the project (except for sound, but I2C soundcard is coming https://playground.arduino.cc/Main/SIDuinoI2c - thank you @Radomir Dopieralski  ) and I will continue to make this a small run thing for tindie.  

WiFi and USB for pocketbeagle | Design choices

2017-10-07 16:19:46

Seems like there aren't any capacitors needed for the crystal, although it seems unusual coming from every other chip I've used that needed a crystal. I've added 10pF like in #(One More) Raspberry Pi Zero USB Hub but doubt they're necessary. 

Only one extra USB port has a plug, out of size restrictions etc. - a second one has the RTL8188 directly connected. Therefore only one LED is really necessary for the "connected" status. 

Added a PRTR5V0U2X as ESD protection for the "external" USB port.

can't put skulls on stuff forever

2017-10-03 23:07:15

So I started with "designing" a new logo that somehow has something to do with my chosen internet name and it's heritage. It still needs some work, but is an ok start. 

K.I.T.T. - KNIGHT RIDER badge/brooch | code for arduino

2017-10-01 23:05:30
/*
  Based on https://github.com/maltesemanTS1/Charlieplexing-the-Arduino
  http://arduino.cc/en/Tutorial/BitMask
*/
const int LED_1 = 0;     //LED row 1
const int LED_2 = 1;     //LED row 2
const int LED_3 = 2;     //LED row 3
const int LED_4 = 3;     //LED row 3
#define PRADC 0
#define PRR _SFR_IO8(0x25)
void setup()
{
  // not sure anymore, attiny13?
  // PRR |= (uint8_t)(1 << PRADC);
  // not sure anymore, attiny45?  
  // ADCSRA &= ~(1<<ADEN); // disable adc
}
void loop() {
  for (int i = 0; i < 8; i++) {
    charlie(i);
    delay(50);
  }
  for (int i = 0; i < 8; i++) {
    charlie(7-i);
    delay(50);
  }
  charlie(-1);
  delay(1000);
}
void charlie (int var) {
  pinMode(LED_1, INPUT);
  digitalWrite(LED_1, LOW);
  pinMode(LED_2, INPUT);
  digitalWrite(LED_2, LOW);
  pinMode(LED_3, INPUT);
  digitalWrite(LED_3, LOW);
  pinMode(LED_4, INPUT);
  digitalWrite(LED_4, LOW);
  switch (var) {
    case 0:
      pinMode(LED_1, OUTPUT);
      digitalWrite(LED_1, HIGH);
      pinMode(LED_2, OUTPUT);
      digitalWrite(LED_2, LOW);
      break;
    case 1:
      pinMode(LED_1, OUTPUT);
      digitalWrite(LED_1, LOW);
      pinMode(LED_2, OUTPUT);
      digitalWrite(LED_2, HIGH);
      break;
    case 2:
      pinMode(LED_2, OUTPUT);
      digitalWrite(LED_2, HIGH);
      pinMode(LED_3, OUTPUT);
      digitalWrite(LED_3, LOW);
      break;
    case 3:
      pinMode(LED_2, OUTPUT);
      digitalWrite(LED_2, LOW);
      pinMode(LED_3, OUTPUT);
      digitalWrite(LED_3, HIGH);
      break;
    case 4:
      pinMode(LED_3, OUTPUT);
      digitalWrite(LED_3, HIGH);
      pinMode(LED_4, OUTPUT);
      digitalWrite(LED_4, LOW);
      break;
    case 5:
      pinMode(LED_3, OUTPUT);
      digitalWrite(LED_3, LOW);
      pinMode(LED_4, OUTPUT);
      digitalWrite(LED_4, HIGH);
      break;
    case 6:
      pinMode(LED_1, OUTPUT);
      digitalWrite(LED_1, HIGH);
      pinMode(LED_4, OUTPUT);
      digitalWrite(LED_4, LOW);
      break;
    case 7:
      pinMode(LED_1, OUTPUT);
      digitalWrite(LED_1, LOW);
      pinMode(LED_4, OUTPUT);
      digitalWrite(LED_4, HIGH);
      break;
    default:
      ;
  }
}

LAMEBOY - another ESP12 handheld | firmware for BlinkM clones

2017-09-29 16:41:25

There are some nice features in that firmware, you can fade or jump to colors or follow a fading script. 

http://www.instructables.com/id/Ghetto-Pixels-Building-an-open-source-BlinkM/

https://code.google.com/archive/p/codalyze/wikis/CyzRgb.wiki

LAMEBOY - another ESP12 handheld | slight redesign

2017-09-29 16:14:31

I always wanted to have a footprint that fit 0603 / 0805 / 1206 resistors or capacitors and for this project I finally started designing some. I'll need to test em properly, but this way everyone can use their parts with less hassle. Except for the resistor arrays, I won't change them. 

http://www.resistorguide.com/resistor-sizes-and-packages/

PORG | Getting started with the pocketbeagle

2017-09-29 00:31:25

https://github.com/beagleboard/pocketbeagle/wiki/FAQ

https://github.com/beagleboard/pocketbeagle/wiki

https://beagleboard.org/pocket

https://octavosystems.com/2017/09/21/pocketbeagle-launch/

http://www.mouser.de/new/beagleboardorg/pocketbeagle/

Sadly 4 PWM pins aren't enough to get all 8-10 servos running, so I need a controller for that anyway, probably keep the arduino for that. Probably don't even need PWM for the servos though. (probably leeds to PCA9685 check #Servo Breakout for WeMos D1 Mini )

Totally neat: USB is on the GPIO headers. comparing that to the Raspberry PI derivates, that's pretty cool. 

PORG | shopping in Murica

2017-09-27 21:34:03

I've bought a "target-only" plushy Porg with sound and also got one of the new https://beagleboard.org/pocket - at the Maker Faire New York. So I got the brains and maybe the skin and voice :) 

I2C peripherals based on Attiny85 (mostly) | some attiny dev boards

2017-09-27 18:05:19

corrected the grove connector 

also, for programming and prototyping: 

LAMEBOY - another ESP12 handheld | RGB is finally working

2017-09-21 00:03:42

At the time of designing the boards it felt like a no brainer to use a BlinkM clone over I2C, because I had worked with them in my early beginnings. It took me a while though to finally burn the firmware and set the fuses right, but now I finally made it! 

avrdude -c usbasp -p t45 -U lfuse:w:0xe2:m -U hfuse:w:0xdf:m
avrdude -c usbasp -p t45 -U flash:w:cyz_rgb_slave_attiny45.hex 

I also found out that avrdude is able to slow down the clock frequency of SPI by itself. With -B 100 I was able to reprogram the tiny45, no matter how slow I was setting the fuses by accident.

My #a "true" in system programmer helped a lot burning the firmware onto the attiny!

Of course... of course. R and G are mixed up. gnargh. But here's a demo:

LAMEBOY - another ESP12 handheld | That is just the perfect color!

2017-09-20 13:50:34

LAMEBOY - another ESP12 handheld | case concept

2017-09-20 01:51:19

There's a little edge on the bottom left for the screw less corner. I want to preserve the colorful pcbs as much as i can but also protect the parts. I still need to add the "shoulder" buttons and roughly check if everything fits.

charlie-plexed icosahedron

2017-09-17 12:27:25


that's some tough stuff to get your head around, thanks to past dave I already had a cheat sheet :)

It get's worse from each iteration :D I was quite embarrassed when me and my mum pulled out the hotglue gun... looks a bit like Lukes Lightsaber training ball. I started a collection on thingiverse for inspiration of the next one https://www.thingiverse.com/deefdarko/collections/led-star

newer 2 / 8 older