reading serial ports with acc on mac


hey guys,

i have arduino uno connected pressure pad , basicaly been trying :


  • 1. have arduino sketch which, when button pressed, sends character on serial.

  • 2. serial-to-keystrokes program, takes character serial connection , converts real keystroke


  • 3. program on mac translates keystroke whatever want do.


     
found on blog here : http://www.arkadian.eu/pages/tag/aac-keys

and further here : http://www.instructables.com/id/a-makers-wedding-photo-booth/step2/software-and-trigger-button/

i have been testing out arduino sketch
code: [select]
const int buttonpin = 10; // number of pushbutton pin

int buttonstate = 0; // variable reading pushbutton status

void setup() {

pinmode(buttonpin, input);
serial.begin(9600); // open serial port @ 9600 bps:
}

void loop(){

buttonstate = digitalread(buttonpin);

if (buttonstate == high) {
serial.println();
}
else {
// nothing
}

}


the code works in serial monitor cant working in other application or trigger photobooth app when on.

i feel might wrong serial port arduino on dev/tty.usbmodemeffy141 options in aac bluetooth-pda-sync , serialport wich show under arduino tools serial port section cant upload sketch arduino them selected.

is ths typical? or missing something! how can them on same port?

asking around suggested :
http://code.google.com/p/vusb-for-arduino/
http://www.practicalarduino.com/projects/virtual-usb-keyboard

which seems overkill button press

any enlightenment gratefully received

thankyou

p

another choice have arduino control cd4066 quad bilateral switch chip connected matrix of used usb keyboard.  can disassemble keyboard , remove circuit board.  each of analog switches can act 1 button, shorting row line column line generate keystroke.


Arduino Forum > Using Arduino > Interfacing w/ Software on the Computer > reading serial ports with acc on mac


arduino

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

listen to event