Show Posts
Pages: 1 ... 329 330 [331] 332 333 ... 599
4951  Using Arduino / Motors, Mechanics, and Power / Re: The best shield for control 6Motors on: August 06, 2012, 02:48:28 pm
To get six controllers you will probably want to use individual controllers and not a shield.  The LMD18201 H-Bridge can handle 3A at 55V.  You just need to wire Direction, Brake, and PWM pins to Arduino outputs.  Unless you need some motors to spin freely while you apply the brakes on others you might be able to use a single Brake pin.  You might also not need the Brake feature which would mean the 6 controllers would need only 12 pins.
4952  Using Arduino / Programming Questions / Re: #define not working within switch case? on: August 06, 2012, 02:33:22 pm
Oops......I was programming last night and when I set up all of my #define's I did have an "=" in there.  Works now and I need to work on my attention to detail :-)

Better yet, change your programming style:
const int outOne = 10;
const int on = 11;

This gives the compiler more information and lets it do more syntax checking for you.
4953  Using Arduino / Programming Questions / Re: Errors with DS3231 Libraries on: August 06, 2012, 02:19:08 pm
To fix the  Eric Ayers DS3231 library:

In DS3231.h:
Change <Wprogram.h> to <Arduino.h>

In DS3231.cpp:
Replace all "Wire.send" with "Wire.write".
Replace all "Wire.receive" with "".

After that the DS3231_test example compiles without error.
4954  Topics / Interactive Art / Re: vacuum plate idea on: August 06, 2012, 08:27:28 am
Yeah I thought perhaps of rubber spacers spread conviently throughout the glass to help keep it from shattering

You could do what the LumiDisk seems to do: fill the gap with glass beads.
4955  Using Arduino / Installation & Troubleshooting / Re: Program an Arduino using USBasp on: August 06, 2012, 08:24:43 am
I do have the same problem,
If I upload a sketch by Uspasp from the IDE (v1.0.1), the sketchs work fine.
But I can't upload sketches anymore by the arduino ide.
I think the bootloader is over writen.
Burning a new bootloader, solves the problem.
If you upload by extrenal programmer, you erase the flash memory, and then uploud the sketch.
(so you loose the bootloader). Is there a option to prevent that ?

It sounds like you are saying:  "When I burn a fresh bootloader it only works once through USB."  That is a symptom of the auto-reset circuit not working.  Fix the auto-reset and you should get the bootloader to work more than once.
4956  Using Arduino / Programming Questions / Re: RGB to HEX on: August 05, 2012, 11:26:57 am
long RGB = (R << 16) | (G << 8) | B;

The reason your code only showed 'FF' instead of the expected 'FF00FF':

byte << int results in an 16-bit int.  If you shift the byte left by 16 (as in R) it gets shifted off the end.

Use byte << 16L to get a long int (32-bit) result which will hold the 24-bit result:

long RGB = (R << 16L) | (G << 8) | B;

You were getting 0x0000 | 0xGG00 | 0x00BB = 0xGGBB which prints as 'FF'.

What you wanted was 0x00RR0000 | 0xGG00 | 0x00BB = 0x00RRGGZBB which prints as 'FF00FF'.

You can't pass a 24-bit value to a functions that use an int.  SOMETHING is way wrong.  What function are you trying to pass RGB to?
4957  General Category / General Discussion / Re: Hey, Im new here on: August 05, 2012, 11:04:02 am
You can have your PC talk to the Arduino via USB cable and feed it values from the server OR you could add network access (Ethernet Shield) to your Arduino and have it talk to the server directly.  If the Arduino is close to your PC then the USB cable is easier and cheaper.  If you want it to work without the PC then Ethernet is the way to go.
4958  Topics / Product Design / Re: 2 Axis Solar Tracker (The evolution of an idea) on: August 05, 2012, 10:58:49 am
You might want to provide a rechargeable battery.  If the tracker follows the sun until sunset it will be in just the wrong position to power the motors at sunrise.  With no power it will have to wait until it gets enough energy from the reflected sunrise light to move the array back to the sunrise position.

The linear regulator wastes some of that precious solar energy.  A DC-to-DC converter would be more efficient.
4959  Using Arduino / Project Guidance / Re: Desing a PCB to be laser cut. on: August 05, 2012, 10:43:44 am
Engraving will remove the copper top off the board.
You will need an above-average laser cutter for that.

I have seen articles about this being done before (  They spray-painted the coper with flat black paint to make it a better surface for laser etching.
4960  Using Arduino / Project Guidance / Re: robot arm + arduino uno on: August 05, 2012, 10:36:48 am
How many motors does your arm have?

What kind of motor are they?

If your motors are DC motors, does your arm have any feedback sensors?  If so, what kind and how many?
4961  Using Arduino / Programming Questions / Re: PU vs AU on: August 05, 2012, 10:32:17 am
    // Running on a chip with 8 analog inputs

This works because of the:
in boards.txt which selects hardware/arduino/variants/eightanaloginputs/pins_arduino.h which contains:
#define NUM_ANALOG_INPUTS           8

4962  Using Arduino / Networking, Protocols, and Devices / Re: USB Host shield hex converter? on: August 05, 2012, 08:20:10 am
Looks like the MAX3421E is running on 3.3V and the Hex Converter is used to shift the 5V logic of the Arduino down to 3.3V logic.
4963  Using Arduino / General Electronics / Re: two character common cathode 7 segment display on: August 05, 2012, 08:14:48 am
Google is your friend:
4964  Using Arduino / Sensors / Re: SRF08 sensor not working on: August 05, 2012, 07:43:00 am
Perhaps you should use the library or at least look at how the example uses the library to see if you missed any steps.
4965  Topics / Interactive Art / Re: vacuum plate idea on: August 04, 2012, 04:53:53 pm
I don't think that silicone seal work well for high vacuum.  You could try to melt the glass together.  A propane torch is hot enough to melt glass.
Pages: 1 ... 329 330 [331] 332 333 ... 599