Show Posts
|
|
Pages: [1] 2
|
|
1
|
Forum 2005-2010 (read only) / Interfacing / Re: Arduino and 1-wire
|
on: January 07, 2009, 03:12:41 am
|
hello,all, thanks jim for his onewire library.But i used the arduino 12, i got the following errors when the Arduino environment (11) starts up: OneWire.cpp: In constructor 'OneWire:neWire(uint8_t)': OneWire.cpp:74: error: 'digital_pin_to_port' was not declared in this scope OneWire.cpp:76: error: 'port_to_output' was not declared in this scope OneWire.cpp:77: error: 'port_to_input' was not declared in this scope OneWire.cpp:78: error: 'port_to_mode' was not declared in this scope so i have to fix it myself for i cannot open the link on background to get the recent files. in onewire.h i add #include <pins_arduino.h> in onewire.cpp OneWire::OneWire( uint8_t pinArg) { pin = pinArg; /* port = digital_pin_to_port[pin].port; bit = digital_pin_to_port[pin].bit; outputReg = port_to_output[port]; inputReg = port_to_input[port]; modeReg = port_to_mode[port]; */ port = digitalPinToPort(pin); bit = digitalPinToBitMask(pin); outputReg = port_to_output_PGM[port]; inputReg = port_to_input_PGM[port]; modeReg = port_to_mode_PGM[port]; #if ONEWIRE_SEARCH reset_search(); #endif }
now the error is gone, but i want to know that it is right ? maybe anybody can help me or give me the right link to get recent file.thanks.
|
|
|
|
|
4
|
Forum 2005-2010 (read only) / Interfacing / Re: use arduino and sony erriscon T610 to call phone
|
on: August 16, 2009, 07:50:48 pm
|
|
it's still very disappointed that i canot make it run. i think the code is right .Maybe the arduino not transmit the code to mobile. Even when i disconnect the mobile from the arduino, from the COM motitor software i can get the return code. when i transmit the same code on pc to arduono ,then arduono can transmit it to mobile;but when arduino directly transmit the code to mobile ,it not run. it's very surprising.
|
|
|
|
|
10
|
Forum 2005-2010 (read only) / Interfacing / use arduino and sony erriscon T610 to call phone
|
on: July 19, 2009, 10:05:42 am
|
|
hello all, anybody had sucessfully use the arduino to connect to soy erriscon T610? i buy a t610 data cable, i can use it on PC successfully. Now i want to use it with arduino ,so i cut the cable,i found it is four lines, one connect the mobile pin 4 for TX ,One to pin5 for RX ,one to pin10 for GND ,one to pin3 . Someone told me only want the three lines ,so the pin3 is not useful. The next is i put Mobile pin4 -- arduino pin0, mobile pin5 to arduino pin1,mobile pin 10 to arduino GND. After all done ,i used the PC Terminal to send AT command, i cannot even type one character! i write some code to arduino , i only get the out information AT*EVD="82220356" ,the mobile is still nothing to happen. :-[ ,anybody can help me ? thanks.
void setup() { // begin the serial communication Serial.begin(4800); printString("AT*EVD=\"82220356\""); }
void loop() { byte val; // check if data has been sent from the computer if (Serial.available()) { // read the most recent byte (which will be from 0 to 255) val = Serial.read(); // set the brightness of the LED Serial.print(val); } }
|
|
|
|
|
12
|
Forum 2005-2010 (read only) / Interfacing / Re: how to drive the cd-rom brushless motor?
|
on: June 25, 2008, 10:22:22 pm
|
|
just found BA6840BFS IC can driver the cd-motor with 3-phase . i cannot find the motor stype,it is nothing about it,maybe i will detach it to see which pin is wire A,b,c ,whici is Hall 1,2,3, etc
|
|
|
|
|
15
|
Forum 2005-2010 (read only) / Interfacing / Re: curious battery problem
|
on: August 07, 2008, 04:17:25 am
|
|
thanks ,oracle, do you mean i should put two capacitor, one across the two wires of motor and one for power supply between Arduino. in fact i have put one 104 capacitor across the two wires of motor,but it still not work . should i put anotor between power supply. i will try it. thanks again.
|
|
|
|
|