Show Posts
Pages: [1] 2 3 ... 45
1  Using Arduino / Microcontrollers / Re: ATtiny my night light, can't find the bug. on: September 29, 2014, 10:30:34 pm
The LDR is connected to pin PB2 on the ATtiny85.  This corresponds to analog input A1.

You should try:
Code:
int LDR = A1;
2  Using Arduino / Microcontrollers / Re: ATtiny my night light, can't find the bug. on: September 29, 2014, 07:58:42 pm
Depends, what clock speed are the fuse bits set to?  Which attiny software core are you using?
3  Using Arduino / Microcontrollers / Re: PLEASE HELP: cant get arduino mega 2560 to dfu mode on: September 29, 2014, 05:22:25 am
When you short the pins and it shows up again as mega2560 then go to your Device Manager, then try the Update Driver Software.  Then go to Browse my computer for driver software, and browse to the C:\PROGRAM FILES (x86)\Atmel\FLIP 3.4.7\USB folder.
4  Using Arduino / Microcontrollers / Re: How to re-set fuses to 8Mhz internal without an external oscillator on: September 29, 2014, 02:16:54 am
Yes, buying crystals may be easy for some or many, but there are also a lot of people from around the world that don't have easy access to crystals or various components.  Or let alone afford one.

These alternate programming methods are still very good to for many to get by without additional resources.
5  Using Arduino / Microcontrollers / Re: Is it possible to get the Software from the Arduino onto the Computer? on: September 28, 2014, 11:58:41 pm
Which brings up another question: Are there dis-assemblers and assemblers for these chips in the public domain?

I'm afraid that won't help the OP but I'm somewhat interested.

The IDE includes an avr-objdump utility that can disassemble hex code you saved off from avrdude.
Code:
avr-objdump -D --architecture=avr:5  somefile.hex
6  Using Arduino / Microcontrollers / Re: How to re-set fuses to 8Mhz internal without an external oscillator on: September 28, 2014, 11:19:10 pm
You don't need to add a crystal or resonator to reset the fuses, as long as you have an external clock source.  Some ISP sketches similar to Arduino as ISP can provide an output PWM clock source to feed to the target m328P mcu that is expecting a crystal or resonator.

See Gammon's notes about "alternate clock sources" at, http://www.gammon.com.au/forum/?id=11637
And then the "Programming the Bootloader" section right below that.  His programmer sketch will output an 8MHz clock source  on the programmer D9 pin that you can connect to the target m328P XTAL1 pin.  Use the Lilypad 8MHz selection.  This should get you started to change the fuses to internal.  From there you can then reprogram it via standard IDE burn bootloader process.

7  Using Arduino / Microcontrollers / Re: Do you need to use a power regulator with an ATTiny chip? on: September 28, 2014, 05:52:05 am
If the wall-wart is already 5V you can't put a LM7805 regulator on that, it's too low.  The LM7805 needs at least 7.5V input to regulate effectively down to 5V.

It doesn't matter if the 5V wall-wart is linear or switching.  As long as it is regulated output then he should be fine.  The main difference between switching and linear regulators is the efficiency of conversion.  Switching regulators are more efficient.  Linear regulators wastes a lot of energy as heat.
8  Using Arduino / Microcontrollers / Re: avrdude: initialization failed Problem with bootloading (no crystal) on: September 28, 2014, 05:44:31 am
The ICSP header uses pins D11 and D12.  The nrf24 board is probably interfering with the uploads and causing the verification errors.  You will need a way to disconnect the nrf24 board when you program the m328p mcu.

9  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: September 27, 2014, 03:00:55 pm
This topic has been hashed many times for optimized math division.  Check these out.

http://forum.arduino.cc/index.php?topic=185662.0

http://forum.arduino.cc/index.php?topic=164644.0

http://forum.arduino.cc/index.php?topic=167414.0

http://forum.arduino.cc/index.php?topic=172635.0

http://forum.arduino.cc/index.php?topic=165860.0

http://forum.arduino.cc//index.php?topic=192209.msg1448435#msg1448435

10  Using Arduino / Microcontrollers / Re: avrdude: initialization failed Problem with bootloading (no crystal) on: September 27, 2014, 02:54:00 am
Well, verification errors usually point to some kind of wiring or connection problem.  Can you verify your programmer's ribbon cable has good connectivity?  I've had a bad crimp on  a ribbon cable that drove me nuts until I replaced the cable.  It was not obvious and lead me down the wrong path until I figured out it was just the cable.  (BTW, it was the same pocket programmer from SparkFun that had a bad cable)

Hopefully you have at least a DMM test meter?  You can do continuity checks from the programmer 10-pin to your board ICSP 6-pin header.

One other thing, do you have anything else connected to the board that could be loading down the pins?
11  Using Arduino / Microcontrollers / Re: ATMega1284P Bootloader Assistance on: September 26, 2014, 09:31:45 pm
Yes, that would be correct for crystals.  The OP said he was using a resonator.  So the options for Full Swing Resonator is different.
12  Using Arduino / Microcontrollers / Re: ATMega1284P Bootloader Assistance on: September 26, 2014, 07:36:13 pm
There were a number of thread a while back that different 1284P boards had issues with the clock not starting up properly.  The main resolution was to set the lfuse byte to "Full Swing Oscillator".  I would recommend trying the lfuse byte to 0xD6.
13  Using Arduino / Microcontrollers / Re: Smaller substitute for Arduino uno on: September 26, 2014, 03:09:55 pm
I think the OP got scared away... smiley-eek
14  Using Arduino / Microcontrollers / Re: Can't Use an Arduino as ISP on: September 26, 2014, 08:03:43 am
Huh?  Loosing the USB bootloader does not eliminate the USB core from the users sketch.  Every sketch built with Leonardo or Micro selections already includes a serial USB core.  It's a part of the sketch and takes up around 4K of flash.  This is what allows user's sketch to do serialUSB communications.  It does not rely on the bootloader for any USB communication.  You don't need LUFA.
15  Using Arduino / Microcontrollers / Re: avrdude: initialization failed Problem with bootloading (no crystal) on: September 26, 2014, 07:10:12 am
When you burn bootloader it has two stages.  Sounds like it got past the first stage of setting the fuses, but failing on the second part of writing the bootloader.  This could be if the pin you are holding is making intermittent contact.  However, if we assume the fuse bits got changed then it may be running on internal 8MHz clock.  Then you don't need the external clock anymore.  How many times did you try?
Pages: [1] 2 3 ... 45