Posts Tagged 'fix'

Programming attiny85 with Arduino Uno

This is just a short post about how I finally, after considerable troubleshooting, got my attiny85 programmed. I followed the High-Low Tech guide for programming my attiny85 with the Arduino Uno. However when I tried to upload the blink sketch to the attiny I got a bunch of errors(e.g. avrdude: stk500_cmd(): programmer is out of sync, avrdude: stk500_paged_write(): (a) protocol error). I rechecked everything (software, wiring, etc) way too many times just to run into the same problem again and again. Finally, what worked was to distribute grounds to various GND pins on the Arduino board. Now I’m not exactly sure which one did the trick, but anyway everything works flawlessly now. Actually the trick is to drop the baud rate to 9600 in the Arduino ISP program, and also edit the programmers.txt in the arduino > hardware folder.
avrisp.name=AVR ISP
avrisp.communication=serial
avrisp.protocol=stk500v1

avrispmkii.name=AVRISP mkII
avrispmkii.communication=usb
avrispmkii.protocol=stk500v2

usbtinyisp.name=USBtinyISP
usbtinyisp.protocol=usbtiny

usbasp.name=USBasp
usbasp.communication=usb
usbasp.protocol=usbasp

parallel.name=Parallel Programmer
parallel.protocol=dapa
parallel.force=true
# parallel.delay=200

arduinoisp.name=Arduino as ISP
arduinoisp.communication=serial
arduinoisp.protocol=stk500v1
arduinoisp.speed=9600

Hope this helps someone out there experiencing the same problem.

Advertisements

Conky configuration for XFCE4+Compiz

Lately I’ve been very interested in monitoring my system, mainly temperatures. When I use Windows I like to monitor temperatures with realtemp and to monitor my linux temps I use lm_sensors.

Constantly typing in “sensors” in terminal to view the cpu temperature got me a bit annoyed. So I installed Conky, a fancy configurable monitoring program that sits on your desktop and displays system information. However, even though Conky was easy to install and configure to display what I needed, making it work properly in the XFCE4, Compiz and Avant Window Navigator scenario turned out to be very difficult.

When I looked for solutions I found many, but none of them worked with my setup. The problem was that with any ‘default’ .conkyrc from the Conky website, Conky would dissapear when I opened any window and minimized it. I tried some own_window variables but there was always a new problem when the old one was fixed. Finally I though I had found a working config, but no, Conky would flash from beneath windows every now and then, making, for example, Firefox browsing very irritating. Finally I figured out the culprit, it was own_window_type. The workaround was to completely forget own_window_type and only use and arsenal of own_window_hints. Here’s what worked for me and I have a feeling that it could work for others having the same problem:

double_buffer yes
own_window yes
own_window_transparent yes
own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager

See there’s no own_window_type. Amazing when all the possible solutions that I ran into had something to do with own_window_type, e.g. own_window_type desktop or own_window_type override. Now Conky works fine and I can move to calibrating the sensors output. Please comment if this helped, or if you need help 😀