Show Posts
Pages: 1 2 [3] 4 5 ... 8
31  Using Arduino / General Electronics / Re: 74HC165 on: October 04, 2011, 08:04:09 am
But how is it programmed? In the sketch given in the ShiftIn tutorial page, it is programmed like this:
Code:
void loop() {
  //Pulse the latch pin:
  //set it to 1 to collect parallel data
  digitalWrite(latchPin,1);
  //set it to 1 to collect parallel data, wait
  delayMicroseconds(20);
  //set it to 0 to transmit data serially 
  digitalWrite(latchPin,0);

  //while the shift register is in serial mode
  //collect each shift register into a byte
  //the register attached to the chip comes in first
  switchVar1 = shiftIn(dataPin, clockPin);

But is it necessary to put the load (latch) pin HIGH, delay 20microsec and put it in LOW? Can I just put it in LOW immediately? One more thing, do I need to put the load(latch) pin back to HIGH? The sample sketch given doesn't have one.
32  Using Arduino / General Electronics / 74HC165 on: October 04, 2011, 07:10:53 am
With the use of 74HC165, I can have 8 extra digital input pins, but how to configure it? It doesn't have a latch pin like the 74HC595, instead it has a load pin, whats the use of it? How to configure that pin? Do I put it LOW before every data transmission and HIGH again after every data transmission?
Q7is the output data, not Q7 with - on top , right? CE to low or high?

Datasheet: http://www.cytron.com.my/datasheet/IC/74/74HC165.pdf
33  Using Arduino / Project Guidance / Re: Powering an Arduino on: October 03, 2011, 11:53:44 am
O, my fault, sorry
34  Using Arduino / Project Guidance / Re: Powering an Arduino on: October 03, 2011, 11:00:33 am
ohh, i'd thought that it had fried the Arduino till it's stopped working. What a misunderstanding.
35  Using Arduino / Project Guidance / Re: Powering an Arduino on: October 03, 2011, 10:55:43 am
So using 4~6x AA batteries would be OK, right?

But why do others say that using a 9V will fry my Arduino?
36  Using Arduino / Project Guidance / Re: Powering an Arduino on: October 03, 2011, 10:20:45 am
So how to not spoil my Arduino?

Is connecting a 9V battery to the power jack ok then?
37  Using Arduino / Project Guidance / Re: Powering an Arduino on: October 03, 2011, 09:32:00 am
You guys misunderstood my question, only MarkT got it. I'm powering the Arduino through the power jack, I just want to know is the 5V pin available at 5V for use while powering 9V through the power jack.
38  Using Arduino / Project Guidance / Powering an Arduino on: October 03, 2011, 09:00:42 am
If I'm using a 9V battery to power an Arduino Uno, can I still use the +5V pin instead of the Vin pin?
39  Using Arduino / Project Guidance / Re: Extra Input/Output pins on: October 02, 2011, 07:44:03 am
Any cheaper ones?
40  Using Arduino / Project Guidance / Extra Input/Output pins on: October 02, 2011, 05:19:33 am
We can use to trigger 8 outputs with the use of 3 pins with the 74HC595 IC. And read/write 8 inputs/outputs with the 74HC4051 IC but only can read/write 1 pin at a time. Does anyone know what IC can read/write 8 inputs/outputs (analog and/or digital) at the same time?
41  Using Arduino / General Electronics / 74HC595 on: October 02, 2011, 01:30:52 am
We program it with the function shiftOut(), eg.shiftOut(dataPin, clockPin, MSBFIRST, 255) (255 - BIN=11111111 - all pins high). But can we program it like shiftOut(dataPin, clockPin, MSBFIRST, 11111111) to make all pins high?

What if there's no shiftOut function, how can we send binary data to the data pin?
42  Using Arduino / Project Guidance / Re: More amps from pwm on: October 01, 2011, 07:58:22 am
Why not use phototransistor optocouplers like the 4N25? It is a bundle of an infrared transmitter led and a phototransistor in an IC.

Datasheet: http://www.cytron.com.my/datasheet/IC/linear/4N25_28.pdf
43  Using Arduino / Project Guidance / Re: PCB Hand-milling on: October 01, 2011, 05:34:46 am
Can these bits help to mill PCB's, especially the V-shaped bit ? (picture attached)
44  Using Arduino / Programming Questions / Re: Arduino as hardware/to run a software on: October 01, 2011, 03:21:31 am
Thanks a lot!
45  Using Arduino / Programming Questions / Re: Arduino as hardware/to run a software on: September 30, 2011, 08:35:01 am
Can an Arduino be programmed to trigger open a software ?

Can it be programmed to use it as a hardware ?(keyboard etc.)
Pages: 1 2 [3] 4 5 ... 8