Show Posts
Pages: [1] 2 3
1  Using Arduino / Project Guidance / Advice on signal inverting circuit on: June 14, 2011, 03:15:08 pm
Okay, I have a project for a switch in my car. The problem is the input to the microprocessor in the car has to be a ground signal(low). The switch I am using is normally grounded and opens when activated. So I designed part of this circuit to invert the signal using a transistor. I don't know one thing though. Will the normally grounded switch make the entire circuit grounded once the switch is shut, essentially making the circuit always grounded. I don't know the resistance of the processor's input, so I'm not really sure how to calculate the voltage drop across the resistor. Any help?

2  Using Arduino / Microcontrollers / Re: ATTiny85 arduinoisp problem on: February 03, 2011, 08:11:59 pm
Sorry, I understand that it won't work properly if the uno resets, but with the uno's reset pin tied to power(haven't tried the cap idea) through a 110 ohm resistor I get sync errors and can't communicate with the chip at all. When I use the manual reset button and avrdude I can get it to communicate but it shows the wrong device ID. There is a post on the arduinoisp page saying that it wont work with an arduino uno due to the optiboot or something... I saw someone else mention it. Has anyone worked around it? I have a breadboard arduino and an FTDI breakout cable but the last time I messed with this(like 2 am one night) it was giving me some other error and I just went to bed. School has been keeping me busy all week until I go to bed, so I haven't been able to put much time in this, especially since the Tiny85 isn't critical towards my projects, just a side thing I was toying with.
3  Using Arduino / Microcontrollers / Re: ATTiny85 arduinoisp problem on: January 30, 2011, 01:52:04 am
lol... correct me if im wrong...To disable the auto reset I'm using two 220 ohm resistors in parallel, but that is when I get the sync errors. Two 220 ohm resistors in parallel is equivalent to 110 ohms... 1/(1/220 + 1/220).

I looked through those posts... I hadn't thought about putting a cap as well as the 5v to it... I'll try that as well and see if it helps me get around the sync errors I guess

edit: oops, thought I mentioned the 220 ohm resistors earlier, added that
4  Using Arduino / Microcontrollers / Re: ATTiny85 arduinoisp problem on: January 30, 2011, 01:11:24 am
I never called anyone stupid...
Two things:
1) I have been able to write to the attiny85 using the arduino IDE, I just have to perform a manual erase with avrdude...

2) the -F doesn't really seem necessary if I can write to the chip without it... I don't think I can make the IDE use it by default, so it really won't save me any trouble.

I think this might be related to my laptop, it seems like others seem to have success with it... I'll try my desktop and see what happens, both are Windows 7 machines, but the laptop isn't cutting edge by any means...
5  Using Arduino / Microcontrollers / Re: ATTiny85 arduinoisp problem on: January 30, 2011, 12:42:14 am
lol @ the misinformation here.... the IDE is just a wrapper for the avrdude program. the icsp pins on the uno are the six pins mounted right next to the chip. The usb port uses serial communication, I have a breadboard arduino and the only things hooked up to the FTDI cable are the serial ports, power, ground, and the auto reset pin. like Coding_Badly said, hold shift and click upload for any sketch and you see the avrdude output.

I had the auto reset disabled, but then I get sync errors. So I unplugged the reset wire, and still had issues, i have to hold the reset button on the uno and then let go when avrdude tried connecting to get anything now... who knows...
6  Using Arduino / Microcontrollers / Re: ATTiny85 arduinoisp problem on: January 29, 2011, 12:11:29 am
Sorry for the super long delay between posts, school work has kept me busy until I passed out everynight lol. Here is my avrdude report:
Code:
C:\Users\>C:\Users\Documents\PCB_Projects\arduino-0022\arduino-0022\h
ardware/tools/avr/bin/avrdude -CC:\Users\Documents\PCB_Projects\arduino-00
22\arduino-0022\hardware/tools/avr/etc/avrdude.conf -v -v -v  -pattiny85 -cstk50
0v1 -P\\.\COM14

avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "C:\Users\Documents\arduino-0022\arduino-0022\hardware/tools/avr/etc/avrdude.conf"

         Using Port            : \\.\COM14
         Using Programmer      : stk500v1
avrdude: ser_open(): setting dtr
         AVR Part              : ATtiny85
         Chip Erase delay      : 4500 us
         PAGEL                 : P00
         BS2                   : P00
         RESET disposition     : possible i/o
         RETRY pulse           : SCK
         serial program mode   : yes
         parallel program mode : yes
         Timeout               : 200
         StabDelay             : 100
         CmdexeDelay           : 25
         SyncLoops             : 32
         ByteDelay             : 0
         PollIndex             : 3
         PollValue             : 0x53
         Memory Detail         :

                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           eeprom        65     6     4    0 no        512    4      0  4000  45
00 0xff 0xff
                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           flash         65     6    32    0 yes      8192   64    128  4500  45
00 0xff 0xff
                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           signature      0     0     0    0 no          3    0      0     0
 0 0x00 0x00
                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           lock           0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           lfuse          0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           hfuse          0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           efuse          0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           calibration    0     0     0    0 no          2    0      0     0
 0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 3
         Firmware Version: 3.3
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATtiny85
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e950f
avrdude: Expected signature for ATtiny85 is 1E 93 0B
         Double check chip, or use -F to override this check.

avrdude done.  Thank you.
7  Using Arduino / Microcontrollers / ATTiny85 arduinoisp problem on: January 26, 2011, 12:35:04 am
Ok, I had a handful of attiny85s and used a duemilanove with the arduinoisp sketch to program them. After one successful upload, I could no longer upload anything, nor did the original sketch work(same problem for all three I wrote to). I discovered if I connected straight through avrdude and used terminal mode to do a manual erase, I could then write one more sketch before repeating the process. I have since written new sketches to them all and they work. Link to old thread below, I got the core files from the google code site Coding_Badly posted. I don't know what is causing this error, and don't really have enough knowledge to get much deeper into it, but it is annoying to have to do this process if I am prototyping and making a lot of changes.
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1295468226/all
8  Forum 2005-2010 (read only) / Development / Re: Analog in to bcd out? on: November 24, 2010, 09:40:26 pm
Jeez...I was on my phone in the car...im so used to other forums where the search button is a button right next to home, profile etc..I didn't see it up top. Then you said see the search button....I was like no haha..... I've found a couple things now...hopefully I can get this done. Sorry for the typical n00b behavior
9  Forum 2005-2010 (read only) / Development / Analog in to bcd out? on: November 24, 2010, 05:45:06 pm
I am working on a project that will take an analog signal as input(using a sensor that changes resistance when exposed to a gas). I am going to use an arduino to monitor the voltage, convert it and send it to a Max7221 led decoder to drive 5 seven segment display digits. I have zero experience with an arduino though. I've done visual basic and java. Im wondering if this has been done and is common/easy, or if im gonna have to figure this all out. Another thing is I believe the input is 10 bits, and the max7221 takes 8bit bcd as input. Any advice would be appreciated
10  Forum 2005-2010 (read only) / Development / Re: Attiny projects? on: January 23, 2011, 11:07:42 pm
is it possible this is caused by using the uno as an isp(the verification error, not the avrdude.conf errors)? Would it be worth my time to buy the pololu? Or do I need to fgure out this error before deciding?
11  Forum 2005-2010 (read only) / Development / Re: Attiny projects? on: January 23, 2011, 10:21:09 pm
Now I get this error lol:
error at {arduino root}\arduino-0022\arduino-0022\hardware/tools/avr/etc/avrdude.conf:320 unrecognized character: "a"
12  Forum 2005-2010 (read only) / Development / Re: Attiny projects? on: January 23, 2011, 01:37:28 am
I've tried copying that code three times and using two different text editors, I always get this error

avrdude: error at {arduino root}\arduino-0021\hardware/tools/avr/etc/avrdude.conf:8801: invalid bit specifier "0      0"

edit: just out of curiosity I upgraded to arduino 0022, still getting the verification error.
13  Forum 2005-2010 (read only) / Development / Re: Attiny projects? on: January 23, 2011, 01:04:39 am
So, I tried a 3rd attiny85, I uploaded the blink program twice successfully. Then, without touching any wires except for disconnecting the LED leg from pin 0, I uploaded the fade sketch, then got the same error. I can't load anymore sketches to the 85, so apparently something in the fade sketch is causing the error...I don't know enough about the actual behind the scenes stuff, does anything seem potentially fatal in this code? I've used it on my uno as is, just with a different pin number.
Code:
/*
 Fade
 
 This example shows how to fade an LED on pin 9
 using the analogWrite() function.
 
 This example code is in the public domain.
 
 */
int brightness = 0;    // how bright the LED is
int fadeAmount = 5;    // how many points to fade the LED by

void setup()  {
  // declare pin 9 to be an output:
  pinMode(0, OUTPUT);
}

void loop()  {
  // set the brightness of pin 9:
  analogWrite(0, brightness);    

  // change the brightness for next time through the loop:
  brightness = brightness + fadeAmount;

  // reverse the direction of the fading at the ends of the fade:
  if (brightness == 0 || brightness == 255) {
    fadeAmount = -fadeAmount ;
  }    
  // wait for 30 milliseconds to see the dimming effect    
  delay(30);                            
}
14  Forum 2005-2010 (read only) / Development / Re: Attiny projects? on: January 23, 2011, 12:32:03 am
I have disconnected the LED everytime I've tried to program it. The uno is powered by usb. I tried using a 9v battery connected to a 5v 1 amp regulator, with two 10uf caps, one right at the regulator, one right next to the leads for the 85. I'm using premade jumper wires, longest one is about 6 inches. I did not change any wires at all between the first and second sketch except for the one for the positive leg of the led. I removed the uno and then uploaded a simple sketch to the uno, and it worked. Reloaded the isp sketch, same error. I am going to reset this laptop just for kicks....
15  Forum 2005-2010 (read only) / Development / Re: Attiny projects? on: January 22, 2011, 11:46:23 pm
Okay...I changed the boards.txt to stk500v1, and it worked! Uploaded the blink sketch successfully and tested it. Then I tried the fade sketch, and I got
Code:
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: verification error, first mismatch at byte 0x0008
         0x47 != 0x45
avrdude: verification error; content mismatch

Then I tried to go back to the blink, and get the same error. I unplugged everything and closed the IDE, even rewrote the ISP sktech to the uno. Same error, tried a second attiny85, loaded the first sketch fine, then got the error uploading the second sketch... any advice?
I read that a noisy power supply could have caused this, so I installed a 10 uF cap to filter the power with no change, all in a breadboard, no soldering... I just find it odd that I can upload one sketch but not another...
Pages: [1] 2 3