Show Posts
|
|
Pages: 1 2 [3] 4
|
|
32
|
Using Arduino / Project Guidance / Strange problem with DIY arduino
|
on: August 10, 2011, 04:08:15 pm
|
I have two arduinos, one Uno and one made by myself using Atmega8 and http://itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard scheme. I turn Uno to ISP programmer using proper sketch and disabling auto reset using a cap between reset and gnd pins. And problems begins... I burn bootloader on second board without problems, next I used blink to see some effects  After that I use sketch that give HIGH to all digital ports (to test solders and connections)... but all circuit is dead. I burn bootloader once more, use Blink and it works... till next upload.. It seems that cotroller wipe bootloader from memory. Some advices ?
|
|
|
|
|
33
|
Using Arduino / Audio / Re: Arduino and LM386
|
on: July 23, 2011, 01:26:58 am
|
|
Ok I see two NPN/PNP transistors connected together and connected to arduino pin using some potentiometer (10 kohm will be good ? ) Or one Darlington transistor Abut second scheme , what capacitor I should use ? Hmm this look way simple than using LM386.
|
|
|
|
|
34
|
Using Arduino / Audio / Re: Arduino and LM386
|
on: July 22, 2011, 04:40:16 pm
|
Distortion don't bother me too much because I need simple and moderately loud "beep" I plan to build it on universal board, it could solve some connection problems. I noticed now that I bought N1 version...
|
|
|
|
|
35
|
Using Arduino / Audio / Arduino and LM386
|
on: July 22, 2011, 11:19:11 am
|
I have sketch witch generate some sound using tone() function. I need louder sound so I plan to use LM386 http://www.national.com/ds/LM/LM386.pdf. I want to use first circuit from page 5 So questions are : It will work with tone() function ? Can I have separate voltage supply for arduino and amplifier (each powered from 9V battery ) ? This circuit will handle 3W 4ohm speaker ?
|
|
|
|
|
37
|
Using Arduino / Networking, Protocols, and Devices / Problems with DS1990R-F3
|
on: July 06, 2011, 06:05:00 am
|
I have some problems with this device. I used code : #include <OneWire.h>
OneWire ds(12);
byte addr[8]; String keyStatus="";
void setup(void) { Serial.begin(9600); }
void loop(void) { getKeyCode(); if(keyStatus=="ok"){ byte i; for( i = 5; i >0; i--) { Serial.print(":"); Serial.print(addr[i], HEX); } } else if (keyStatus!="") { Serial.print(keyStatus);} delay(1000); }
void getKeyCode(){ byte present = 0; byte data[12]; keyStatus=""; if ( !ds.search(addr)) { ds.reset_search(); return; }
if ( OneWire::crc8( addr, 7) != addr[7]) { keyStatus="CRC invalid"; return; } if ( addr[0] != 0x01) { keyStatus="not DS1990A"; return; } keyStatus="ok"; ds.reset(); }
and some errors appears. I used 2.2 kohm resistor for pull up and connected all wires in good patter
|
|
|
|
|
42
|
Topics / Robotics / Help with identification of stepper motors
|
on: May 23, 2011, 04:29:37 am
|
|
I have two steppers from OKI printer. What current I need to power them ? 500 mA will be sufficient value ?
First : 3.3V number KFL49LLB 741A 5.5 ohm
Second : 5.6V KBL42LLB600R 7.9 ohm
The are four wires (two phase bipolar motors).
|
|
|
|
|
44
|
Using Arduino / Networking, Protocols, and Devices / Re: Interfacing with RF Link Transmitter/Receiver
|
on: March 09, 2011, 01:42:32 am
|
I have some problem too.. I fuse transmitter and reciver programs in one - to test them #include <VirtualWire.h> #undef int #undef abs #undef double #undef float #undef round
void setup() { Serial.begin(9600); // Debugging only Serial.println("setup");
/* TX na 12 */ // Initialise the IO and ISR vw_setup(2000); // Bits per sec Serial.println("VWSetup");
/* RX na 11 */ vw_rx_start(); // Start the receiver PLL running Serial.println("RX Start"); }
void loop() { /** TX DATA **/ const char *msg = "hello"; digitalWrite(13, true); // Flash a light to show transmitting vw_send((uint8_t *)msg, strlen(msg)); Serial.println("Send"); vw_wait_tx(); // Wait until the whole message is gone Serial.println("TXdone"); digitalWrite(13, false);
/** RX DATA **/ uint8_t buf[VW_MAX_MESSAGE_LEN]; uint8_t buflen = VW_MAX_MESSAGE_LEN;
if (vw_get_message(buf, &buflen)) // Non-blocking { int i;
digitalWrite(10, true); // Flash a light to show received good message // Message with a good checksum received, dump it. Serial.print("RX: ");
for (i = 0; i < buflen; i++) { Serial.print(buf[i], HEX); Serial.print(" "); } Serial.println(""); digitalWrite(10, false); }
delay(200); }
TX work fine but RX don't read any messages. I'm using RF link from seedstudio Any suggestions ?
|
|
|
|
|