Show Posts
|
|
Pages: [1] 2
|
|
3
|
Forum 2005-2010 (read only) / Interfacing / Re: LiquidCrystal.begin()
|
on: August 05, 2010, 10:24:58 am
|
Quote: You mean it's defined in the library but never used?
It's worse than that. Not only is 'cols' not used, but 'rows' is only checked to see if it is greater than 1, the actual value isn't used.
If they had used the 'cols' value then they could have made the 16x4 displays function correctly, right now they offset the third and fourth rows.
Another unusual characteristic is that the library defaults to a 16x1 display if you don't invoke LiquidCrustal.begin(). Those displays are relatively rare, most 16x1s are actually 8x2 internally and should be invoked as such.
thanks, that's indeed what I ment and saw
|
|
|
|
|
5
|
Forum 2005-2010 (read only) / Interfacing / LiquidCrystal.begin()
|
on: August 05, 2010, 04:40:28 am
|
|
I'm looking at the liquidCrystal library which comes with arduino 0018 and I'm wondering what the cols parameter is used for. I know it's supposed to represent the number of columns on the display, but as far as I can see, it isn't used anywhere in the code..... (but then again, I might be wrong, that's why I ask)
|
|
|
|
|
6
|
Forum 2005-2010 (read only) / Development / Re: Optiboot - improved Arduino bootloader
|
on: August 05, 2010, 11:57:36 am
|
I hate being the party pooper. But I have an issue using Optiboot. I'm running Ubuntu 9.10 32 Bit. The standard bootloader has been working well for several months. I came across this thread and I thought it sounded great and I downloaded and installed it as per instructions. All appeared to be well, the extra options appeared in the board menu and burning the bootloader to one of my homebrew arduinos with a USBtiny programmer worked fine and it downloaded sketches which appeared to run OK.
Confident I was on a winner I burnt the bootloader to one of my Duemilanoves (a fake, if thats relevant,but it has long since proven itself with the standard bootloader). I uploaded my home monitoring sketch to it and I could see by my slow heartbeat monitor and the serial output the sketch was running fine. So I unplugged it and transferred it to the running environment. It fired up with the telltale double blink and there was no output either to the serial or the LCD panel I have attached. It had forgotton the sketch with being unplugged. So I uploaded it again on my progamming computer and checked it was running with no problem. So I unplugged it from the USB and then plugged it back in, back to the double blink and no sketch. I've restored it to the standard bootloader and its back working as expected.
It seems to do it with any sketch , it appears to work fine, but it forgets all about the sketch if its deprived of power. The optiboot is the latest version 3 from the google code site I'm having the same problem with an DFRduino Duemilanove (328p) on Win XP (SP3). Loaded the bootloader with USBtinyISP v2.0 (clone). Also tried it on a DFRduino nano V3.0, and there all is working fine.
|
|
|
|
|
10
|
Forum 2005-2010 (read only) / Development / Re: new arduino emulator - emulare
|
on: July 29, 2010, 01:12:07 pm
|
|
I tried this with the latest version (1.4) and WinAVR-20100110. I used the hex from a sketch I have succesfully running on my DFRduino Duemilanove. I can connect just fine to emulare, but when I try to download, I get this error :
"DOWNLOAD FAILED: Invalid download offset and." in insight.
I get this error with all sketches I try, even the simple blink example. What am I doing wrong ?
I'm following the documantion from the emulare website.
|
|
|
|
|
11
|
Forum 2005-2010 (read only) / Troubleshooting / Re: How to burn a Arduino Bootloader
|
on: July 26, 2010, 10:38:05 am
|
its simple people
A) upload sketch B) plug 4 wires into 4 pins of the arduno C) hook up other chip D) burn As far as we know, he has a Duemilanove and a second chip, no second arduino, no breadboard (that's additional hardware, right ;D ). true wires can be seen as hardware too... Anyway, I think he has enough info to get him started...
|
|
|
|
|
12
|
Forum 2005-2010 (read only) / Troubleshooting / Re: How to burn a Arduino Bootloader
|
on: July 26, 2010, 09:48:15 am
|
Do I only have to replace the Duemilanove Chip, with a chip without Bootloader? Or do I have to do more? So he owns a Duemilanove. No extra hardware needed, just replace the chip and follow the link I earlier posted. And for the record, I think "the AWOL's toggle switches and a great sense of rhythm" wouold be faster than buying a programmer from ebay ;D
|
|
|
|
|
15
|
Forum 2005-2010 (read only) / Interfacing / Re: more power
|
on: August 05, 2010, 04:50:21 pm
|
The vin expects some nice and clean 5v, put it 12v and you have a fried arduino. From the hardware pages The power pins are as follows:
* VIN. The input voltage to the Arduino board when it's using an external power source (as opposed to 5 volts from the USB connection or other regulated power source). You can supply voltage through this pin, or, if supplying voltage via the power jack, access it through this pin.
* 5V. The regulated power supply used to power the microcontroller and other components on the board. This can come either from VIN via an on-board regulator, or be supplied by USB or another regulated 5V supply.
* 3V3. A 3.3 volt supply generated by the on-board FTDI chip. Maximum current draw is 50 mA.
* GND. Ground pins. one of them must be wrong .....
|
|
|
|
|