Show Posts
Pages: 1 2 [3] 4 5 ... 542
31  Using Arduino / Microcontrollers / Re: Revive dead Arduino Nano on: April 20, 2014, 07:10:36 am
The Arduino Nano doesn't normally use Optiboot.  If you select the board "Arduino Nano w/ ATmega328" it will be expect the bootloader "ATmegaBOOT_168_atmega328.hex" at 57600 baud (see boards.txt).  Optiboot runs at 115200 baud so it is not a drop-in replacement for the expected bootloader.

To burn a fresh bootloader on your Nano you should:
 1) Select Tools->Board->Arduino Nano w/ ATmega328
 2) Select Tools->Programmer->USBasp
 3) Tools->Burn Bootloader

If you want an Optiboot bootloader on your Nano you can put the following in a Arduino/hardware/boards.txt:
Code:
##############################################################
nano328O.name=Arduino Nano w/ ATmega328 & Optiboot

nano328O.upload.protocol=arduino
nano328O.upload.maximum_size=32256
nano328O.upload.speed=115200

nano328O.bootloader.low_fuses=0xFF
nano328O.bootloader.high_fuses=0xDE
nano328O.bootloader.extended_fuses=0x05
nano328O.bootloader.path=optiboot
nano328O.bootloader.file=optiboot_atmega328.hex
nano328O.bootloader.unlock_bits=0x3F
nano328O.bootloader.lock_bits=0x0F

nano328O.build.mcu=atmega328p
nano328O.build.f_cpu=16000000L
nano328O.build.core=arduino
nano328O.build.variant=eightanaloginputs
##############################################################

After that (and restarting the IDE) you can use the "Arduino Nano w/ ATmega328 & Optiboot" board type to burn a fresh bootloader and do your uploads.
32  Using Arduino / Programming Questions / Re: Problem with converting variable types & serial communication on: April 20, 2014, 06:53:24 am
The problem with the third number is that you only store a number when it is followed by a comma:
Code:
      if(inChar==','){
        inColor[currentColor] = serialBuffer.toInt();
        currentColor++;
        serialBuffer = "";
      }
33  Using Arduino / Installation & Troubleshooting / Re: Power through USB is fine, but power through Vin is not working on: April 20, 2014, 06:32:42 am
If 12.93V is getting to the input side of the regulator and you are not getting 5V out the other side then replacing the regulator is likely to fix the problem.  If the 12.93V isn't getting to the regulator then you have a different problem, like a bad solder joint or burned trace.
34  Using Arduino / Project Guidance / Re: difference between these two shields on: April 19, 2014, 07:20:03 pm
The "adapter" is not a Shield.  It does not plug directly onto an Arduino board and establish reasonable connections.  To use the adapter you will have to wire the adapter pins to Arduino pins.
35  Using Arduino / Project Guidance / Re: Wall Plotter Question on: April 19, 2014, 07:14:43 pm
Under "Firmware" you will find the .pde file (pre-V1.0 Arduino sketch) to load into the Arduino.

Under "src" you will find the Java program that runs on the PC to control the plotter.
36  Using Arduino / Installation & Troubleshooting / Re: Power through USB is fine, but power through Vin is not working on: April 19, 2014, 06:56:52 pm
When you hook up Vin and Ground to the battery do you get 5V on the 5V pin (relative to Ground)?  If not, your 5V regulator is probably dead.  It is not used for USB power.
37  Using Arduino / Programming Questions / Re: Question about how sketch code is executed: on: April 19, 2014, 06:52:46 pm
The right way to do it is to reduce your 12-second sequence into a series of states.  Each time through loop() you can check your inputs and check to see if your system should switch to a new state or continue doing what it is doing.  This is called a "State Machine" model.  It is a way of eliminating the delay() calls that cause your program to be unresponsive.
38  General Category / General Discussion / Re: 3D printer on: April 19, 2014, 08:09:13 am
Try the RAMPS controller:
http://reprap.org/wiki/Arduino_Mega_Pololu_Shield
39  Using Arduino / Sensors / Re: SPI Sensors Values Way Off on: April 19, 2014, 08:04:11 am
Code:
theTime = ((unsigned long)dataArray[0] << 24) + ((unsigned long)dataArray[1] << 16) + ((unsigned long)dataArray[2] << 8) + (unsigned long)dataArray[3];
You are re-assembling the time backwards.  Element 0 is the LSB. Try:
 
Code:
theTime = ((unsigned long)dataArray[3] << 24) + ((unsigned long)dataArray[2] << 16) + ((unsigned long)dataArray[1] << 8) + (unsigned long)dataArray[0];
40  Using Arduino / Project Guidance / Re: difference between these two shields on: April 19, 2014, 07:15:21 am
Looks like the SparkFun WiFi Shield is a clone of the official Arduino shield so it will probably work with the Arduino library and examples.  The adafruit shield uses a different chip and would require a different library.
41  Using Arduino / Project Guidance / Re: temperature controller with pt100 for 0 to 300 degres cilcius on: April 18, 2014, 07:54:24 pm
Probably best to use a chip dedicated to converting the measurement to digital, like the Maxim MAX31865.
42  Using Arduino / Project Guidance / Re: Create wireless magnetic knob on: April 18, 2014, 03:46:25 pm
Does the button also needs 5 magnets (apart from the center magnet) or is 1 enough?

I expect the button will either need more magnets or a ferrous metal structure to concentrate the magnetic field into multiple poles.   If you had 5 magnetic poles the magnetic field would fade out on all 5 sensors at the same time and then fade in again.  You would not be able to tell which direction the disk was rotating.  With a number of legs that is not a multiple of 5 you should be able to detect direction of rotation.   I would try something with 6 legs.
43  Development / Other Hardware Development / Re: How to lower power output on laser diode? on: April 18, 2014, 03:31:04 pm
So, I would need to build my own driver in this particular case?

Yes


Or buy one already built.
44  Using Arduino / Project Guidance / Re: Create wireless magnetic knob on: April 16, 2014, 12:32:10 pm
It appears there is a central magnet to hold the knob in place an several hall-effect sensors under the knob to detect tipping and rotation.  If you can buy a replacement knob and measure the pattern of magnetic fields that should get you closer to an understanding of how many hall-effect sensors are under that cooktop.
45  Using Arduino / Installation & Troubleshooting / Re: Arduino Unknown Device on: April 16, 2014, 12:20:24 pm
Unknown Device probably means that you do not have the proper driver installed. What model Arduino?
Pages: 1 2 [3] 4 5 ... 542