Show Posts
Pages: 1 ... 17 18 [19] 20 21 ... 35
271  Using Arduino / Project Guidance / Re: Looking for USB Host overview on: May 06, 2013, 05:54:40 pm
I had found from the manual that Sprog DCC controller using as USB to serial converters, therefore USB host shields should be able to support.
272  Using Arduino / Project Guidance / Re: How to Create logic on: May 06, 2013, 06:53:59 am
you need to debounces the input, without which pressing the button once would appear to the code as multiple presses.
273  Using Arduino / Project Guidance / Re: need help with LED controlling/disabling an out put on: May 06, 2013, 06:21:52 am
int led1 = 13;
int led2 = 12;
int led3 = 10;

void setup(){
  pinMode(led1, OUTPUT);
  pinMode(led2, OUTPUT);
  pinMode(led3, OUTPUT);
void loop(){

  pinMode(led3, INPUT); //this does not work ??? why???
  // digitalWrite(led3,LOW); --> If you already set it to input, don't write
  pinMode(led3, OUTPUT); //this does not work ??
  pinMode(led1, INPUT); //this does not work ??
  // digitalWrite(led1,LOW);  --> If you already set it to input, don't write
  pinMode(led1, OUTPUT); //this does not work ??
  pinMode(led2, INPUT); //this does not work ??
//  digitalWrite(led2,HIGH);  --> If you already set it to input, don't write
  pinMode(led2, OUTPUT); //this does not work ??
  pinMode(led3, INPUT); //this does not work ??
//  digitalWrite(led3,HIGH);  --> If you already set it to input, don't write
  pinMode(led3, OUTPUT); //this does not work ??


274  Using Arduino / Project Guidance / Re: Looking for USB Host overview on: May 05, 2013, 12:20:30 pm
Read this, the Arduino USB Host shields was design as the hardware interface, but the supported device was up to the user who use it to write the interface software to talk to a USB device.

USB in a NutShell
Making sense of the USB standard
Starting out new with USB can be quite daunting. With the USB 2.0 specification at 650 pages one could easily be put off just by the sheer size of the standard. This is only the beginning of a long list of associated standards for USB. There are USB Class Standards such as the HID Class Specification which details the common operation of devices (keyboards, mice etc) falling under the HID (Human Interface Devices) Class - only another 97 pages. If you are designing a USB Host, then you have three Host Controller Interface Standards to choose from. None of these are detailed in the USB 2.0 Spec.

USB defines class code information that is used to identify a device’s functionality and to nominally load a device driver based on that functionality.

Some of the USB device like the cheap wi-fi dongle, have only RF transceiver in the hardware, the wifi protocol and IP stack was all in the device driver, hence you are unlikely to get it work with Arduino, perhaps too large to fit in the AVR micro's flash.

For example I was tempted to recommend an Arduino to control model trains using a Sprog dcc controller (which connects to a PC by USB) but I realized I had no way of knowing whether it would work with an Arduino, or even what to look for in the product specifications that would help me to know.

To know the protocol for Sprog dcc controller, You will have to get a USB sniffer to be able to sniff the protocol.
275  Using Arduino / LEDs and Multiplexing / Re: 8x8 rgb colorduino help on: May 05, 2013, 03:12:18 am
You need to include this a the start of the code
#include "Arduino.h"
276  Using Arduino / General Electronics / Re: Keypad 4x4 schematic on: May 05, 2013, 01:33:51 am
Yes, but you may not need the 10K resistors to Gnd.
277  Using Arduino / Storage / Re: How to use board_qc sketch with USB Host shield on: May 04, 2013, 10:14:37 pm
Serial.begin( 115200 );
You have to set your serial to 115200 baud, by default is only 9600 baud.
278  Using Arduino / Project Guidance / Re: USB host shield on: May 04, 2013, 10:07:56 pm
Do not cross post!
The board_qc sample in the Host Shield 2.0 library is use to test your board.  It out on serial with 115200 baud.

What device are you connected to this USB host shield?
279  Using Arduino / Project Guidance / Re: Replacing a Wired Controller with an Arduino Uno on: May 04, 2013, 08:31:56 pm
Base on the schematic diagram, the robot arm used two 3V batteries form a double-ended power supply for the motors.
You can use two transistors to control the motors like this
280  Using Arduino / Project Guidance / Re: Programming code for a roulette wheel ? on: May 03, 2013, 05:01:14 am
281  Using Arduino / Project Guidance / Re: Ardutester - Arduino Component Tester on: May 03, 2013, 04:43:09 am
New version 0.6k on line  smiley-grin
- Some fix (By PaoloP)
The link 404 not able to download smiley-surprise
282  Using Arduino / Displays / Re: IIC/I2C/TWI 2004 20X4 Character LCD Module Display on: May 01, 2013, 08:55:51 am
Have you try the New LCD library?
New LCD library - Replacement for the original LiquidCrystal Library to control LCDs with different control interfaces: 4bit, 8bit, I2C, ShiftRegister, SPI comming soon. The library is faster than the original, more flexible and extendable.
283  Using Arduino / Project Guidance / Re: is there a way to disable one of the digital ports on: April 30, 2013, 11:02:22 am
i whant to run 6 LED's on three outputs but then i have to disable one of the pins.

Are you doing Charlieplexing
Try this Library
284  Using Arduino / Project Guidance / Re: what are the libraries that support Arduino Mega 2560 for ECC implementation. on: April 29, 2013, 05:28:46 pm,41318.0.html
285  Using Arduino / General Electronics / Re: arduino and MOSFET IRL540 on: April 29, 2013, 10:13:23 am
This is a N-channel MOSFET, the Source pin has to connected to ground and the Drain connect to the valve, the other side of the valve connect to 12V.
Pages: 1 ... 17 18 [19] 20 21 ... 35