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
Code:
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.
2  Forum 2005-2010 (read only) / Interfacing / Re: use arduino and sony erriscon T610 to call phone on: August 20, 2009, 07:13:10 pm
I have solved the problem,thanks for your help,orac. After the success pc connection, i forgot to swap the pin4 and pin5. I have made  so big fool. smiley
3  Forum 2005-2010 (read only) / Interfacing / Re: use arduino and sony erriscon T610 to call phone on: August 18, 2009, 09:10:07 pm
Anybody help me ?
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.
5  Forum 2005-2010 (read only) / Interfacing / Re: use arduino and sony erriscon T610 to call phone on: August 08, 2009, 08:01:57 pm
Now i have succeded in sending call in hyperlink after i attached "0D" on every AT Command. but now i meet another problem when i transmit command from arduino.  it run and response ok  but not call .
maybe you can help me again.


void setup()
{
  Serial.begin(9600);  
  Serial.print("AT*EVD=\"81620356\"\r");
}

void loop()
{
}
6  Forum 2005-2010 (read only) / Interfacing / Re: use arduino and sony erriscon T610 to call phone on: July 22, 2009, 03:12:38 am
It report ERROR,even when only send "AT" command!!
7  Forum 2005-2010 (read only) / Interfacing / Re: use arduino and sony erriscon T610 to call phone on: July 20, 2009, 10:07:30 pm
yes, i have swaped. Now when i send "AT" on another PC  com interface communication software, after 7 seconds , it  back "ERROR".
8  Forum 2005-2010 (read only) / Interfacing / Re: use arduino and sony erriscon T610 to call phone on: July 20, 2009, 06:30:58 am
hello,Orac,I just tried it as you said ,but i even cannot type "AT" in hyperTermial. it connected ,but cannot type anything character on the memo.  maybe the problem is the arduino, not the mobile phone connectivity??
9  Forum 2005-2010 (read only) / Interfacing / Re: use arduino and sony erriscon T610 to call phone on: July 20, 2009, 03:33:34 am
thanks for your help, orac, i will try it .
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);
  }
}
11  Forum 2005-2010 (read only) / Interfacing / Re: how to drive the cd-rom brushless motor? on: June 28, 2008, 07:46:32 pm
yes, now i found that it is diffcult to drive the BLDC, maybe  it is relatively easy to drive BLDC with sensor than sensorless . LBP6190 maybe meet the need if with hall sensor. But it cost nearly $2 more. Does anybody use arduino to drive BLDC without sensor ???
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
13  Forum 2005-2010 (read only) / Interfacing / Re: how to drive the cd-rom brushless motor? on: June 25, 2008, 07:24:58 pm
you can get it from an old cd-rom. it's used to rotate the cd in center of shield.
14  Forum 2005-2010 (read only) / Interfacing / how to drive the cd-rom brushless motor? on: June 25, 2008, 07:00:28 am
now i got one BLDC motor from my old cd-rom. The motor was 3 wires. Anybody can tell me how drive it using arduino?The motor have 13 pins,maybe it's diffcult to drive.Maybe i will have to cut the driver part from the origial . smiley-grin
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.
Pages: [1] 2