Game Boy Cartridge plus Programmer | a creature of habit might learn something to stay in comfort zone
2017-02-12 23:06:23
What a fantastic title for a link drop
I might want to program the programmer from arduino at some point
Game Boy Cartridge plus Programmer | DFU second round
2017-02-12 20:53:02
Once again I've put on the DFU USB bootloader onto the AVR AT90USB1287, after reading the bootloader PDF without any disctractions :D There I read that the chips need a full erase before you can program them over DFU. Did that. Than I also found out that I have to start the program I've burned ... oh well :) works! Awesome :) - now the actual programming can start :D
sudo dfu-programmer at90usb1287 erase --force
sudo dfu-programmer at90usb1287 flash main.hex
sudo dfu-programmer launch --no-reset
RGB LED Oscilloscope | Mildly annoying results
2017-02-11 13:33:24
I should have tested it before, first the kit themself and then the forrest mims version. The matrix is all soldered up and the kits are soldered like I've interpreted it so far.

At this point I cant tell what I've captured there, I'm having my thumb on signal ground to produce some jitter.
Some thoughts
- I had to change the capacitor for the 555 to around 100nF, because I need a much faster scanning of the 4017
- no LEDs were used of all the kits (yay, rectangular LEDs!)
- resistors for the red LEDs of the LM3915 kit were "jumpered"
- my orange LEDs turn green when I slow down the scaling, which for me hints to too much current being drawn
- the bottom line seems to mirror the top line and everything is upside down from what I've expected
- using 50 orange LEDs from one bag and 50 orange LEDs from another doesn't mean you get 100 equally orange LEDs (I still have some green 3mm LEDs though, also diffused, better suited for this)
- meh
- meh
- meh, I need chocolate. Yes, you've read that right, I need beer
- I have to, but I don't want to "reverse engineer" the kit's schematics
blinking things | 3 little boards - blinky stuff
2017-02-10 20:37:20
Wemos 2812B moaaaar LEDs shield
After seeing RGBW LEDs on the Adafruit stream I quickly went on Aliexpress to buy some and then designed a Wemos D1 shield for them, just not with only one LED.
SMD LED bargraph for breadboards (with Resistors)
A classic, but I was in the mood to design it.
RGB LEDs charlie-plexed pinout
This is basically the layout of one column of a 4x4x4 RGB LED cube...
RGB LED Oscilloscope | 3mm mono colored prototype
2017-02-10 12:19:27
Yesterday I thought I could 3D print a little LED holder to solder up a 3mm LED 10x10 matrix, where with that I could kit bash a mono prototype together - well, that escalated quickly. Out came the "blincotron". Since the front side looked a bit offset and boring, I've also added windows for the colorful backside of the pcbs to show. There are 2 potentiometer wholes and one for a switch, to manipulate "vertical gain", "horizontal sweep" and "freee running vs. triggered sweep". Still missing is a whole for the input signal (of course....) and a good spot for the 4011.
RGB LED Oscilloscope | shopping time
2017-02-06 12:47:49
My favorite time of a project cycle!
| parts | price | amount | total |
| 100pcs common anode CA RGB LEDs | 3.41 EUR | 1 | 3.41 EUR |
| CD4017 NE555 LED chaser board | 1.15 EUR | 1 | 1.15 EUR |
| LM3915 "funny" diy kit board | 1.50 EUR | 3 | 4.50 EUR |
| Total | | | 9.06 EUR |
Thanks to current political events that makes: 9.73 USD
With a little creative air wiring this will make a lovely solder Sunday :)
zynthia - sequencer synthesizer | a little upgrade
2017-02-05 00:23:23
I've bought one of those cheap LM386 DIY kits on eBay and upgraded Zynthia to be fully stand alone. I only had 10 red caps for the resistors, so I took green instead and a dymo label, the last switch is now the power switch :) I also mixed up one power cable and without checking I've almost killed a battery by shorting it :D
http://www.ebay.de/itm/272323639604?_trksid=p2057872.m2749.l2649&ssPageName=STRK:MEBIDX:IT


Nokia 3310 / 5110 display board | should I Tindie / eBay this?
2017-01-27 14:41:45
I'm seriously considering to fix the minor problems, make another batch and sell them. Here are some thoughts and questions.
- it's simple to understand
- easy to integrate into projects
- it's different enough from the original LCD modules
- parts are affordable, which keeps BOM small
Design considerations
- should I add a controller for the RGB led?
- should I connect via SPI or I2C?
- I2C: more pins on the header, Attiny possible
- SPI: too many pins for attiny, LED pin reusable as CS
- or even use WS2812b protocol
- LED pin reusable as DIN
- requires timey-wimey stuff
- get attiny or original controller chip
- leave it as is, use 2 extra pins, let the customer worry
- design pinout like sparkfun, adafruit or cheap eBay boards?
- idea here is to make it easy to swap
- keep it 5V?
Pricing
could be around 10 Euros and still have a good margin.
Nokia 3310 / 5110 display board | one board is soldered
2017-01-26 00:07:40
Notes:
- definitely order 0.8mm boards (I failed because it was after midnight... )
- pins for display can be shortened by shield -> edit footprint!
- 5V stuff is confusing! I only considered it for getting more "bang" for the buck
- next version should have Attiny13 for I2C RGB control
- maybe add an ESP12 foot print
- play with MQTT (red alert / temperature stuff)
- also RGB pinout is not correct!
- resistors for colors are not in the same order and values must be corrected
- ESP12 analogWrite has 10bit resolution!

433MHz MQTT remote | Is it alright to say DaveCAD?
2017-01-21 21:45:08
the button matrix

433MHz MQTT remote | known problems
2017-01-21 18:10:36
I have no idea what I did, but GPIO16 behaves weird. There is a transistor that allows me to toggle the cols with one pin. PIN 16 "OFF" weirdly jumps between HIGH and LOW, but I neglect that because you can achieve the desired state by just pressing the button longer.
Like with many of my projects there is no backside yet, but this is so much better than having the pure PCB flying around.
An external antenna could be handy, at least a 17cm wire or so.
Game Boy Cartridge plus Programmer | DFU made me jump around
2017-01-17 02:14:02
This board is way out of my Arduino comfort zone... so I'm writing down what I've managed to learn or am able to estimate. I was trying to get this code running http://www.ssalewski.de/AT90USB_firmware.html.en - and the way it was given to upload was via a program called dfu_programmer, that is probably best installed via homebrew for mac (my given machine).
brew install dfu_programmer
I tried and tried and couldn't figure out what I'm doing (wrong) until I've read someone writing in a forum that in a case of a flashed program there wouldn't be the generic dfu bootloader anymore. Luckily Atmel gives you the DFU hex files on the download page. Here is the datasheet for the bootloader: http://www.atmel.com/Images/doc7618.pdf
To activate the bootloader you have to have pulled down the HWE pin when releasing the RST pin, a state that my board is constantly set to, since I've copied the teensy design not knowing "better". At this point I'm not sure if this is working well with the bootloader, but I have my concerns since I can't flash anything, but see the devices as "
AT90USB128 DFU" in my USB list.
I have to bodge some buttons and resistor / capacitor thingies together, like in the Hardware Guide of the AT90USBKEY http://www.atmel.com/Images/doc7627.pdf
The following link [http://www.engbedded.com/fusecalc/] is still pretty useful for getting the values for the fuse bytes to set the HWBE fuse and the Boot Reset fuse. They seem to be important. Also weird:
sudo dfu-programmer at90usb1287 getfuse
target doesn't support fuse set operation.
And this is my log of failure, when trying to flash the Atmega1287. Another thing to do is looking up the Halfkey bootloader on the teensy.
dfu-programmer at90usb1287 flash main.hex --debug 100
target: at90usb1287
chip_id: 0x2ffb
vendor_id: 0x03eb
command: flash
quiet: false
debug: 100
device_type: AVR
------ command specific below ------
validate: true
hex file: main.hex
atmel.c:1153: atmel_flash( 0x7fff5d5b1b40, 0x7fff5d5b1a08, false, false )
intel_hex.c:673: intel_flash_prep_buffer( 0x7fff5d5b1a08 )
atmel.c:1193: Flash available from 0x0 to 0x1DFFF (64kB p. 0 to 1), 0x1E000 bytes.
atmel.c:1197: Data start @ 0x0: 64kB p 0; 128B p 0x0 + 0x0 offset.
atmel.c:1201: Data end @ 0x17F: 64kB p 0; 128B p 0x2 + 0x7F offset.
atmel.c:1206: Totals: 0x180 bytes, 3 128B pages, 1 64kB byte pages.
atmel.c:819: atmel_blank_check( 0x7fff5d5b1b40, 0x00000000, 0x0000017F )
atmel.c:927: atmel_select_memory_unit( 0x7fff5d5b1b40, 0 )
atmel.c:941: Ignore Select Memory Unit for non GRP_AVR32 device.
Checking memory from 0x0 to 0x17F...
atmel.c:986: atmel_select_page( 0x7fff5d5b1b40, 0 )
atmel.c:1000: Selecting page 0, address 0x0.
atmel.c:752: __atmel_blank_page_check( 0x7fff5d5b1b40, 0x00000000, 0x0000017f )
atmel.c:784: Flash region from 0x0 to 0x17F is blank.
atmel.c:862: Flash blank from 0x0 to 0x17F.
Empty.
atmel.c:927: atmel_select_memory_unit( 0x7fff5d5b1b40, 0 )
atmel.c:941: Ignore Select Memory Unit for non GRP_AVR32 device.
Programming 0x180 bytes...
atmel.c:986: atmel_select_page( 0x7fff5d5b1b40, 0 )
atmel.c:1000: Selecting page 0, address 0x0.
atmel.c:1289: Program data block: 0x0 to 0x17F (p. 0), 0x180 bytes.
atmel.c:1424: __atmel_flash_block( 0x7fff5d5b1b40, 0x7fff5d5b1a08, false )
atmel.c:1386: atmel_flash_populate_header( 0x7fff5d5b14a0, 0x0, 0x17F, false )
atmel.c:1340: atmel_flash_populate_footer( 0x7fff5d5b14a0, 0x7fff5d5b1640, 65535, 65535, 65535 )
atmel.c:1485: atmel_flash: flash data dfu_download failed.
atmel.c:1487: Expected message length of 432, got -9.
atmel.c:1292: Error flashing the block: err -2.
ERROR
Memory write error, use debug for more info.
commands.c:514: Error writing memory data. (err -4)
PCB word clock | some documentation added
2017-01-15 14:46:17
Since someone on twitter pointed out that the project documentation is an epicfail, I felt compelled to edit the details and add informations on charlieplexing and the general idea. I first was a bit annoyed, but mostly because the entity was right :) I tend to not document my projects very well, mostly because it's easier to write about it afterwards and laziness. Now it feels more complete though.
hacking a smoke detector | vulcan needed, must be good in logic.
2017-01-14 01:54:39
01:49 am - no boards ordered.
When breadboarding around I've noticed that I made a fatal mistake in that I've connected every GND signal, where there should have been two GNDs that will only be connected when the MOSFET is turned on by the 4001 NOR gate RS Flipflop. So at this point the boards can only be used as breakout boards.

I still have to test the transistor circuit, I think I have it the other way around. I'll test that tomorrow to be fully sure this time. I think I have to pull it low with a resistor and use a PNP instead to reset the flip flop.

PCB word clock | boards are ordered
2017-01-12 16:19:40
So for science I've also added the german layout and ordered this one on 0.8mm boards.
fail: I bought a fake teensy 2++
2017-01-04 17:40:21
I have to rant a bit, because I bought stuff cheap and it byte back. So I'm mad, but it's my fault.
This is what I bought:
http://www.ebay.de/itm/Teensy-2-0-USB-AVR-Development-Board-ISP-U-Disk-AT90USB1286-for-Arduino-TE502-/272272218585?hash=item3f64b059d9:g:ILIAAOSwqBJXXbQI
There's a total f'up with the wiring of the power lines, the fix can be found in the image "wI40iZV.jpg" of this thread, that I'm very happy to have found. I'm not embedding the pic because I haven't asked for permission and don't want to create an account there.
http://www.ps3hax.net/archive/index.php/t-97227.html
They also managed to deliver it with an AMS1117, where the center pin is Vout and the center pin on the board is ground! So this is what I ended up with:

5 bugs saved vs. 5 hours dev time - damn. Lesson learned! Don't be too cheap! Respect the OP.
hacking a smoke detector | already revisioning
2017-01-02 19:26:08
I thought about using "dual 2 input nor gates" for the flip-flop circuit, because of space and maybe I could add a battery monitoring circuit to it then. But those aren't as cheap as 4001 chips.
D'oh!
I think I messed up two things:
- the signals are not right - the NOR gate outputs should be the other way around
- I have no transistor on the ESP to change the state of the flip flop
I guess I have to wait on the parts and test... meh. Wasted day
hacking a smoke detector | not only youtube inspirations
2017-01-02 13:07:13
Amazon Dash button seems to work in the same way (button activates power supply, device shuts down afterwards)
This video (and also projects from @Radomir Dopieralski) inspired me to use the Wemos form factor
hacking a smoke detector | design choice: Wemos shield
2017-01-02 12:48:10
I thought a bit about the design and decided to make it compatible to the Wemos D1 board, but also put a minimal "FTDI + ESP12" configuration on there, so the maker can decide what he will build.
Since GPIO15 is pulled low anyway and I'm able to use it - why not make it the latch off pin.



Portable Raspberry PI Zero | I2C on an Attiny85
2017-01-01 22:47:50
So I thought I would just add the Attiny85 family to the boards by adding the following link to my Additional Boards Manager URLs in my Arduino 1.6.9 IDE and get away with it and use the wire library to hack a little LED PWM backlight controller together. But since that didn't work for the tone() lib on the #Nyan Board , why would it here?
https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json
So I then look around and find this library on GitHub https://github.com/rambo/TinyWire and with it's help I was able to whip together the LED controller! The idea here is that the pin 3 is connected to the PI and when toggled will write the PWM to pin 4. This PWM value can be set via I2C address 0x04.
#define I2C_SLAVE_ADDRESS 0x4
#include <TinyWireS.h>
int pwm_value = 127;
#ifndef TWI_RX_BUFFER_SIZE
#define TWI_RX_BUFFER_SIZE ( 16 )
#endif
void setup() {
TinyWireS.begin(I2C_SLAVE_ADDRESS);
TinyWireS.onReceive(receiveEvent);
pinMode(3, INPUT);
pinMode(4, OUTPUT);
}
void loop() {
TinyWireS_stop_check();
writeLed();
}
void writeLed()
{
if (digitalRead(3) == HIGH)
{
analogWrite(4, pwm_value);
}
else
{
digitalWrite(4, LOW);
}
}
void receiveEvent(uint8_t howMany)
{
if (howMany < 1)
{
return;
}
if (howMany > TWI_RX_BUFFER_SIZE)
{
return;
}
TinyWireS.receive();
howMany--;
if (!howMany)
{
return;
}
while(howMany--)
{
pwm_value = TinyWireS.receive();
}
}