Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 542
61  Using Arduino / Sensors / Re: Problems with Ultrasonic Range Finder - Maxbotix LV-EZ1 on: April 15, 2014, 06:58:36 am
Quote
Yes.  It does matter.
Ok, so how do I write the code controlling 3 analog pins with a digital pin?

Start by disconnecting two of the the RX pins from Pin 11 and connecting then to two other digital output pins.
62  Using Arduino / Motors, Mechanics, and Power / Re: How do i control a normal electro motor (not a stepper) ? on: April 14, 2014, 04:35:51 pm
If you want the 9V motor to go only one direction with adjustable speed then an NPN transistor or N-channel MOSFET would work.  The MOSFET would have to be a logic-level (controlled by 5V) MOSFET to work properly.  A Google search will get you more details.

If you want to control direction of rotation as well as speed you will need something called an H-Bridge.  Agaib, Google will provide more details.
63  Using Arduino / Sensors / Re: Optical Guitar Pickup on: April 14, 2014, 04:31:02 pm
IR Receivers are typically ON or OFF outputs.  Did you want to get audio out of this pick-up or just an indication that the string was vibrating or not?
64  Using Arduino / Sensors / Re: Problems with Ultrasonic Range Finder - Maxbotix LV-EZ1 on: April 14, 2014, 04:26:57 pm
Quote
A lot like the code for one pin but done three times to control three different pins.

Does it matter that I am controlling 3 analog pins (0, 3 and 5) with pin 11?

Yes.  It does matter.
65  Topics / Science and Measurement / Re: Maximum Digital Sample Rate possible (3 digital inputs)? on: April 14, 2014, 04:20:52 pm
Oops. I had forgotten to put in the line "    oldPins = pins; //  Look for further changes".  Corrected above.
66  Using Arduino / Programming Questions / Re: Negative pulse generator with Arduino ???? on: April 13, 2014, 08:48:30 pm
You can certainly output low-going pulses (5V -> 0V -> 5V) at about 1 kHz but you will need some external pulse shaping to get that funky shape.  A capacitor can be used to round off the leading edge.  A resistor will set how long it takes to reach zero.  A diode will get the value back up to 5V quickly.
67  Using Arduino / General Electronics / Re: what is it in the file arduino-mega2560_R3-reference-design.zip. on: April 13, 2014, 08:43:40 pm
The SCH and BRD file are for Eagle. Get the freeware version of Eagle here:
 https://www.cadsoftusa.com/download-eagle/freeware/
68  Using Arduino / Sensors / Re: Problems with Ultrasonic Range Finder - Maxbotix LV-EZ1 on: April 13, 2014, 08:34:50 pm
Quote
It is possible that you will need to control the three RX pins separately.

What would the code look like for that?

A lot like the code for one pin but done three times to control three different pins.
69  Using Arduino / Installation & Troubleshooting / Re: avrdude: stk500_recv(): programmer is not responding on: April 13, 2014, 08:32:59 pm
I've looked at the board and I can't find anywhere on the board where the RXI is even close to VCC?
What about that surface-mount device next to the words "Pro mini"?  it has RXI connected to one end and VCC connected to the other.  Perhaps it is shorted?
70  Topics / E-Textiles and Craft / Re: Detecting Vigorous Motion on: April 13, 2014, 08:18:03 pm
Can you provide any specifics on how to implement this concept - a link to a tutorial, blog post or something similar would be much appreciated. Also, is there a specific name for this kind of switch?

Shock/Impact/Vibration switch
https://www.google.com/patents/US6545235

You can buy 100 of them for $18.99:
http://www.aliexpress.com/item/Free-Shipping-100pcs-lot-SW-58020P-Vibration-Switch-Closed-Leg-SW-58020P-Vibration-Spring-Switch-Shock/1251566328.html

Or 10 for $5.10:
http://www.aliexpress.com/item/Free-Shipping-10pcs-SW-18015P-18015P-Non-direction-Spring-Sensor-Switch-Vibration-Sensor-Switch-Shake/744989644.html
71  Using Arduino / Project Guidance / Re: 6v 300mA water pump activated by PIR using Arduino Board - 6v issues on: April 13, 2014, 04:21:42 pm
You can't control the Vin pin.
72  Using Arduino / Installation & Troubleshooting / Re: avrdude: stk500_recv(): programmer is not responding on: April 13, 2014, 04:19:06 pm
RXI should definitely not be shorted to VCC.  Examine both traces under magnification to see if you can find the short.
73  Using Arduino / Sensors / Re: Problems with Ultrasonic Range Finder - Maxbotix LV-EZ1 on: April 13, 2014, 04:15:51 pm
Quote
If you look at the boards.txt file you will see that the Lillypad uses "variant=standard" which means it uses the same pin mapping as the Arduino UNO.

Ok, I finally get the 8-bit I/O ports but how can I control 3 analog pins (0, 3 and 5) using a digital pin such as pin 11?

It is possible that you will need to control the three RX pins separately.
74  Using Arduino / LEDs and Multiplexing / Re: Problem cascading TLC5917 shift registers using ShiftPWM. on: April 13, 2014, 04:12:30 pm
No, I jumped pins 2 & 14 (SDI & SDO) on the first register, just to verify that the circuit of the second IC was operational. Which it was, even though it was then operating as the first register.

Oops.  My mistake.  I was looking at the schematic for the project you pointed to which uses 74595 shift registers.  I think the way you had it was right.  Have you tried swapping the two registers to make sure both act the same in either location?  If so it sounds like the second socket isn't getting one of the signals: MOSI, CLK, or SS.
75  Using Arduino / LEDs and Multiplexing / Re: Problem cascading TLC5917 shift registers using ShiftPWM. on: April 13, 2014, 08:12:12 am
I've also popped out the first chip and jumpered pins 2 & 13, then the outputs for the second chip work as expected.

Did you mean to say "jumpered pin 14 (MOSI) of the socket to pin 9 (QH*) of the socket"? 
Pages: 1 ... 3 4 [5] 6 7 ... 542