SparkFun Electronics Commentsurn:uuid:214d0e4e-f1b1-d287-ce26-ac5b4c9f82492024-03-28T17:02:01-06:00SparkFun ElectronicsColecago on DEV-00038 - 20 Pin AVR Development TerminalColecagourn:uuid:e386b8c1-c9c9-4892-4840-75bca08450042011-02-25T18:23:23-07:00<p>Hmm, last post didn't show up, must have hit cancel. Anyways, I could not get the buttons to work, even using that code. Either they would stay high or it would miss a button press. I think if you need to write zeros to the pin, give it time to get down, then turn it to an input, otherwise it will be pulled high instead of tri-stated. And I think you need to give some time after setting a pin to an output and making it high before you can read the full voltage on the output, that's why I was missing presses. Here is the code that I used with delays in it<br>
void ReadButtons(){<br>
PORTB = 0;<br>
DDRB = (DDRB &= 0x0F);<br>
DDRB.5 = 1;<br>
PORTB.5 = 1;<br>
delay_us(250);<br>
if (PINB.6)<br>
up_button = 1;<br>
else<br>
up_button = 0;<br>
if (PINB.7)<br>
ll_button = 1;<br>
else<br>
ll_button = 0;<br>
PORTB = 0;<br>
DDRB = (DDRB &= 0x0F);<br>
PORTB = 0;<br>
DDRB = (DDRB &= 0x0F);<br>
DDRB.6 = 1;<br>
PORTB.6 = 1;<br>
delay_us(250);<br>
if (PINB.5)<br>
right_button = 1;<br>
else<br>
right_button = 0;<br>
if (PINB.7)<br>
center_button = 1;<br>
else<br>
center_button = 0;<br>
PORTB = 0;<br>
DDRB = (DDRB &= 0x0F);<br>
PORTB = 0;<br>
DDRB = (DDRB &= 0x0F);<br>
DDRB.7 = 1;<br>
PORTB.7 = 1;<br>
delay_us(250);<br>
if (PINB.5)<br>
left_button = 1;<br>
else<br>
left_button = 0;<br>
if (PINB.6)<br>
down_button = 1;<br>
else<br>
down_button = 0;<br>
PORTB = 0;<br>
DDRB = (DDRB &= 0x0F);<br>
}<br>
And here is a video of it in action<br>
http://www.youtube.com/watch?v=CnEgn1nWUlw<br>
Also, you can put a ATTiny4313 on it, same pinout, just a larger capacity.</p>
Colecago on DEV-00038 - 20 Pin AVR Development TerminalColecagourn:uuid:1116d32c-6c73-9b3d-7e06-4330fd6634f32011-02-23T18:31:17-07:00<p>Yeah, finally broke this guy out to play with it. Could not talk to it with an STK500 through the ICSP port, tried multiple chips, thinking I had a bad chip in it, that was not the case. I troubleshooted it down to the reset circuitry. First of all, the schematic says a 10k pullup to vcc, that was a 1k on my board, we usually use a 6.8k pullup, so 1k seemed a little small. I think that in combination with the reset supervisor would not allow the STK500 to pulse the reset pin the way it does for entering programming mode. I checked and it was trying, I would get a 0 pulse, not sure of the length (didn't scope it). After removing the reset supervisor and replacing the 1k with the 10k, it started working fine.</p>
JustinHoMi on DEV-00038 - 20 Pin AVR Development TerminalJustinHoMiurn:uuid:65aaba68-7bbb-33e6-39c3-299980fe130b2010-07-29T14:20:29-06:00<p>Yeah, I'd be all over this thing if had a breakout for the available pins.</p>
Dean_Kreger on DEV-00038 - 20 Pin AVR Development TerminalDean_Kregerurn:uuid:52523321-1371-071e-e21b-42a2ba4ddf5f2010-07-27T09:52:18-06:00<p>I suggest you try some of the tutorials in the Tutorials section. There will be some differences, since they use the AtMega168... But it should give you some tips on how to set up a development environment.</p>
r0h0b on DEV-00038 - 20 Pin AVR Development Terminalr0h0burn:uuid:49db69ee-1d80-885f-2bc7-644a25f9e45f2010-07-23T14:44:45-06:00<p>I have already purchased AVR terminal, attiny 2313 and DB9 connector. Did I buy all the required components? I have zero exprerience, so how do I start programming? Could anyone tell me? Thanks.</p>
neutered on DEV-00038 - 20 Pin AVR Development Terminalneuteredurn:uuid:1134f067-7165-925f-8394-3c8d19ff17be2010-07-09T21:43:23-06:00<p>possibly a useless comment since this is going into the discontinued list, but don't forget that pins 15 and 16 on the lcd control the backlight. they aren't attached, but two of the L-header pins make it easy to attach to one of the 'spare' header pins.</p>
Jerryt74332 on DEV-00038 - 20 Pin AVR Development TerminalJerryt74332urn:uuid:f3db993a-e9a5-e80b-363d-8f36e66d7ac32010-06-14T11:28:25-06:00<p>I just received mine a few days ago and it is a fun little board to play with. LCD was easy to get up and running, I am using it with a Maxbotix LV-MaxSonar-EZ0 via usart. I think I will buy another one before they are sold out. Good price.</p>
Gagarien on DEV-00038 - 20 Pin AVR Development TerminalGagarienurn:uuid:05fc769b-7e8c-7418-6f6e-c71099db52082010-06-03T05:56:00-06:00<p>I Agree with Ben, maybe a joystick instead of buttons.<br>
and a nother relay and.....and ....and....</p>
omnivescence on DEV-00038 - 20 Pin AVR Development Terminalomnivescenceurn:uuid:9c43b686-5948-836d-ae4f-33f8c9cd35512010-03-26T23:33:03-06:00<p>I think you guys should make something like this, only all surface mount, FTDI chip, atmega328, etc. I'm not saying another arduino clone, but a dev board for a bare AVR with all the goodies like this one, but more.</p>
mitch_feaster on DEV-00038 - 20 Pin AVR Development Terminalmitch_feasterurn:uuid:3756beb7-ee96-83d4-57d1-c801348827542009-10-02T16:04:04-06:00<p>I just got this thing a few days ago and so far I'm loving it. There are a few things I'm still kind of unclear on, so I wanted to see if anyone else has any ideas.<br>
If I want to do IO (other than built-in buttons, light, and lcd) do I have to solder into the buttons or hijack one of the freq or ibutton inputs?<br>
Similarly for interrupts, it looks like the ibutton goes to an interrupt pin, do you just hijack that and use it as an interrupt?<br>
I'm working on a project where I'd like to be able to read a pwm signal from a maxbotix sonar rangefinder and output a pwm signal to a motor. It seems like I'll have to do some hijacking though... (too bad there weren't more pins broken out for general use).<br>
Anyways, any ideas/suggestions are greatly appreciated.</p>
Customer #6334 on DEV-00038 - 20 Pin AVR Development TerminalCustomer #6334urn:uuid:18f379a5-3535-9ed4-c762-b9ceeab0a21e2006-08-26T16:19:13-06:00<p>I bought this about 2 weeks ago. Today I finished writing an lcd driver in C.<br>
When I bought this I had ZERO embedded hardware experience. I would reccomend this board to newbies, it has the advantage of being premade with the most common components, and the processor is easy to code for.<br>
This board has even fell on my shag carpet from a few feet up (by accident) with no ill effects.<br>
Also, that assembly code is EXTREMELY useful. Thank you Dr. Holzer ;)</p>