Show Posts
Pages: 1 2 [3] 4 5 ... 1115
31  Using Arduino / Microcontrollers / Re: Unable to use USBtinyISP on a bread board ATMega328p set-up on: April 17, 2014, 11:59:59 am
Your welcome. Keep in mind that the mega1284P chip has the same DIP pin-out as the 644P with a big increase in SRAM capacity of 16KB and other goodies. I have a optoboot for it also if you ever need it.

Lefty
32  Using Arduino / Installation & Troubleshooting / Re: Sketch-Upload via USB/ TTL-Adapter does'nt work ... on: April 17, 2014, 11:38:41 am
Are you relying on the IDE autoreset function or are you using a 'well timed' manual reset method? Many people trying to use those
PL2303 won't work as the signal name reset on those modules are not the DTR or RTS signal needed to pulse the arduino module. You can hack the PL2303 sometimes depending on board layout of the module.

33  Using Arduino / Microcontrollers / Re: Unable to use USBtinyISP on a bread board ATMega328p set-up on: April 17, 2014, 11:20:59 am
Quote
Which bootloader and board description to use is my next quest!

For the 644? If so I use opto version set up for 16mhz named  optiboot_atmega644p-4-5.hex, as it's the smallest and fastest baudrate, handles WDT interrupts properly, etc.

Code:
:020000000504F5
:10FC0000112484B714BE81FFF2D085E08093810077
:10FC100082E08093C00088E18093C10086E08093F9
:10FC2000C20080E18093C4008EE0CBD0209A86E0B1
:10FC300020E33CEF91E0309385002093840096BB55
:10FC4000B09BFECF189AA8958150A9F7CC24DD244B
:10FC500088248394B5E0AB2EA1E19A2EF3E0BF2E69
:10FC6000A4D0813471F4A1D0082FB1D0023811F49E
:10FC700085E005C0013811F484E001C083E08DD037
:10FC800089C0823411F484E103C0853419F485E01D
:10FC9000A6D080C0853579F488D0E82EFF2485D0A1
:10FCA000082F10E0102F00270E291F29000F111F09
:10FCB0008ED068016FC0863521F484E090D080E05A
:10FCC000DECF843609F040C070D06FD0082F6DD0E1
:10FCD00080E0C81680EED80618F4F601B7BEE895A5
:10FCE000C0E0D1E062D089930C17E1F7F0E0CF16C5
:10FCF000F0EEDF0618F0F601B7BEE89568D007B65B
:10FD000000FCFDCFA601A0E0B1E02C9130E01196FF
:10FD10008C91119790E0982F8827822B932B129625
:10FD2000FA010C0187BEE89511244E5F5F4FF2E0A7
:10FD3000A030BF0751F7F601A7BEE89507B600FC53
:10FD4000FDCF97BEE89526C08437B1F42ED02DD0D4
:10FD5000F82E2BD03CD0F601EF2C8F010F5F1F4FF8
:10FD600084911BD0EA94F801C1F70894C11CD11CFE
:10FD7000FA94CF0CD11C0EC0853739F428D08EE10F
:10FD80000CD086E90AD08AE07ACF813511F488E078
:10FD900018D01DD080E101D063CF982F8091C00092
:10FDA00085FFFCCF9093C60008958091C00087FF27
:10FDB000FCCF8091C00084FD01C0A8958091C60051
:10FDC0000895E0E6F0E098E1908380830895EDDF08
:10FDD000803219F088E0F5DFFFCF84E1DECF1F939A
:10FDE000182FE3DF1150E9F7F2DF1F91089580E04B
:08FDF000E8DFEE27FF2709946C
:040000030000FC00FD
:00000001FF


And from my boards.txt file:

Code:
##############################################################


bobuino644.name=Bobuino 644P optiboot
bobuino644.upload.protocol=arduino
bobuino644.upload.maximum_size=63488
bobuino644.upload.speed=115200
bobuino644.bootloader.low_fuses=0xff
bobuino644.bootloader.high_fuses=0xdc
bobuino644.bootloader.extended_fuses=0xfd
bobuino644.bootloader.path=optiboot
bobuino644.bootloader.file=optiboot_atmega644p-4-5.hex
bobuino644.bootloader.unlock_bits=0x3F
bobuino644.bootloader.lock_bits=0x0F
bobuino644.build.mcu=atmega644p
bobuino644.build.f_cpu=16000000L
#bobuino644.build.core=arduino:arduino
bobuino644.build.core=standard
bobuino644.build.variant=bobuino

##############################################################

But be aware that the bobuino uses a different pins_arduino.h file as he changes some of the pin layout to better match the standard shield layout.
34  Using Arduino / General Electronics / Re: Basic question: Arduino wires on: April 17, 2014, 11:11:30 am
Are the wires which come with the Arduino starter kit made of aluminium and not copper? If so, is that specifically due to aluminium's lack of magnetism, or just to reduce cost?

Not aluminum, most likely tin plated over copper. A magnet will not attract aluminium or copper, only iron or other ferrous metals.


35  Using Arduino / Networking, Protocols, and Devices / Re: What rf to use? on: April 17, 2014, 11:06:45 am
RF control for a kilometer or better usually runs into countries law and regulations covering transmitter power out for unlicensed use.
36  Using Arduino / General Electronics / Re: somebody please explain this? sketch attached on: April 17, 2014, 11:02:52 am
Variable speed fans...

As in continuously variable? Hadn't noticed those, but haven't gone shopping for fans lately either. Will have to be more observant smiley-eek

 Yea, both types avalible as well as some now even use IR remotes to control speeds/on/off. IR remote control using Arduino would be a simple project and keep one from having to deal with household AC voltages.
37  Using Arduino / Microcontrollers / Re: Unable to use USBtinyISP on a bread board ATMega328p set-up on: April 17, 2014, 11:00:49 am
Quote
Oh right - that's good news then smiley  and contrary to Adafruits comment on their website so very pleased to hear that. Perhaps they are referring to an older version. I must admit I have not looked through the code but did wonder why it would not work as it's only copying a bootloader file from the hardware dir to the target MCU surely.

 The Adafruit comments were not wrong but rather confusion about flash size limit being 16 bit words not bytes. So using a USBtiny you can work with avr chips with up to 128KB (64K flash words) or less. That covers most all AVR mega chips except the mega2560 that has 256KB (128K flash words). That make sense?

 
38  Using Arduino / Project Guidance / Re: Serial commands from computer through arduino to another device on: April 17, 2014, 10:52:11 am
Best solution for using multiple serial devices and the USB is to use a mega board as it has four hardware serial channels with channel 0 wired to the USB.

39  Using Arduino / General Electronics / Re: Will this voltage doubler works with DC input? on: April 17, 2014, 10:41:28 am
hi! Thank you for your answer!!


Do you know if there is a whay to just double the voltage by a simple circuit like this one ?

No way to simply double a battery voltage without using switching methods. Just wire two batteries in series will double the voltage, is that simple enough?
40  Using Arduino / Microcontrollers / Re: Unable to use USBtinyISP on a bread board ATMega328p set-up on: April 17, 2014, 10:33:49 am
Quote
So I have now been able to:
Burn boodloader via ISP,
uploaded a sketch via ISP
then tested there was no bootloader (usb upload fail)
then reburnt bootloader via ISP
and USB uploaded

When you upload a sketch via ISP (upload sketch using programmer IDE option) it erases the flash completely from the target chip before the sketch upload thus erasing the bootloader, that is normal behavior. If you want to keep the bootloader in the flash you must not later upload via ISP, only normal IDE uploading using USB serial.

I've used my USBtiny to program a 644P with no problems. Not sure if the 644PA uses different signature bytes then a P (check the AVR datasheet to answer that) but if so the AVRDUDE error would be complaining about signature bytes being wrong, not the error you are seeing? I think you are just erasing the bootloader when performing a ISP upload.


41  Using Arduino / General Electronics / Re: Will this voltage doubler works with DC input? on: April 17, 2014, 10:24:15 am
Must be clocked signal input. Perhaps this tutorial would be helpful:

http://www.eevblog.com/2013/05/25/eevblog-473-microcontroller-voltage-doubler/

42  Using Arduino / Programming Questions / Re: Relay -why it acts the other way - help needed! on: April 17, 2014, 10:19:20 am
Your wiring is correct. What is wrong is your coding:

Code:
digitalWrite( relay , HIGH)   It turns off the relay I don't under stand it  . Usually I used HIGH command to turn on a led or anything
digitalWrite(relay , LOW) it activates the relay and load gets the power. Someone plz tell me,why it is acting the other way?

For that and most Asian relay modules digitalWrite( relay , HIGH) will turn the relay off and
digitalWrite( relay , LOW) will turn the relay on. You just need to get over the fact that you have in your mind that a HIGH output always means ON and a LOW means always OFF, it's not the case with that specific relay module.

Lefty
43  Using Arduino / Programming Questions / Re: Strange behaviour using interrupts on: April 17, 2014, 10:08:45 am
New code. Now the ISR only toggles a var. Still does not work.

Code:
static const int INTERRUPT_NUMBER = 0;
static const int INTERRUPT_MODE = LOW;
static int mustBeep = 0;

void setup() {
  attachInterrupt(INTERRUPT_NUMBER, requestBeep, INTERRUPT_MODE);
}

void loop() {  
  if(mustBeep){
    mustBeep = 0;
    beep();
  }
}

void beep(){
  noTone(7);
  tone(7, 440, 1000);
}

//ISR. Must take no parameters and return nothing.
void requestBeep(){
  mustBeep = 1;
}



Again don't use LOW mode, it's a snake pit, use FALLING.
44  Using Arduino / General Electronics / Re: somebody please explain this? sketch attached on: April 17, 2014, 09:51:04 am
How do room fans that have a selection of three speeds work ?

They have been around a long time,   and I somewhat doubt that they have variable frequency drives.

 Fans with a few fixed speeds usually have different windings switched to the power source. Variable speed fans use triac type controls but with properly sized R/C filters across the triac load terminals.

45  Using Arduino / Programming Questions / Re: Strange behaviour using interrupts on: April 17, 2014, 09:45:14 am
I added another comment to my last posting about what code you have in your ISR, check it out.

Pages: 1 2 [3] 4 5 ... 1115