Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 28
61  Forum 2005-2010 (read only) / Troubleshooting / Re: Interfacing Arduino with Ericsson chatboard on: February 17, 2008, 02:09:14 pm
Ok, had a little time to test with the resistor... to little or no avail. There is less garbage, but it's still there.

Strange thing is that I am getting data with no power connected to the keyboard. I guess softwareserial is causing that...

I have to investigate some more in how to write my program I think...
62  Forum 2005-2010 (read only) / Troubleshooting / Re: Interfacing Arduino with Ericsson chatboard on: February 07, 2008, 02:02:44 pm
I am using an Arduino NG. Not sure if there are many versions for this NG, I bought it at Sparkfun's, about 1.5 year ago.
63  Forum 2005-2010 (read only) / Troubleshooting / Re: Interfacing Arduino with Ericsson chatboard on: February 07, 2008, 05:44:59 am
I completely overlooked the resistor that is needed. I hope I haven't damaged anything...

Project is on hold for a day or 2 now to get the resistor (it's about time I get a box with resistors that are used often  smiley-grin)
64  Forum 2005-2010 (read only) / Troubleshooting / Re: Interfacing Arduino with Ericsson chatboard on: February 06, 2008, 01:59:09 pm
yes, it was going fast... then I had to go home... end of the day...

Ok, I have all grounds connected together now. In my original setup, there was some kind of pattern:
Code:
ð ð à à à ÀþÀþÀü€ü€ü€ü€€€€ ð à à àþÀþÀþÀü€ü€ü€ü€ü€À€€€À ð à à à à àþÀþÀþÀüÀþ€ü€ü
€øààÀà ð ð à à ÀþÀþÀüÀü€ü€øàààÀ ð à àþÀþÀþÀü€ü€ü€ø€øààà ð à àþÀþÀþÀþ€ü€ü€ü€øààà
ð à à àþÀþÀü€ü€ü€øààà ð ð à À ÀþÀþ€ü€ü€ü€øàà ð à à àþÀþÀþÀü€ü€ü€øààà à à àþÀþÀü€
ü€ü€ø€øàà à à à À ÀþÀüÀü€üàààà ð à à ÀþÀþ€ü€ü€üàààà ð à à ÀþÀþ€ü€ü€üàààà à à àþÀ
þÀü€ü€ü€ø€øàà ð à à ÀþÀü€ü€ü€üààà ð à à àþÀþÀü€ü€üààà ð à àþÀþÀþ€ü€ü€øÀà ð à à à
þÀþÀþÀü€ü€øààà à à àþÀþÀþ€ü€ü€øÀà ð ð à ÀþÀþÀü€ü€ø€üààà à à àþÀþÀþÀü€ü€øààà à à
àþÀþÀü€ü€ü€øàà ð à à ÀþÀþ€ü€ü€øàààà à à ÀþÀüÀü€ü€øÀà ð ð à àþÀþÀü€ü€ü€ø€øàÀ à àþ
àþÀþ€þ€ü€ü€øÀÀ ð à àþÀþÀü€ü€ü€øàÀ ð ð à àþÀþÀþ€ü€ü€øÀÀ ð à àþÀþÀþ€ü€ü€øÀÀÀ à à à
þÀþÀü€ü€üÀÀÀÀ à àþÀþÀþÀþ€ü€üàÀÀ ð à à àþÀþÀü€ü€ü€ø€øÀ ð à à àþÀþÀþ€ü€ü€øààà à à
àþÀþÀü€øÀÀ ð à àþÀþÀü€ø€ þÀü€ø €À   üøÀ ð øøà à ð ð à à Àü€ø€ü€ø€ø€ð€ à ÀþÀþÀþÀ
ü€üÀü€ü€ø à€ ð ð ð àþÀ

I powered everything off and removed the Atmega168 from my Arduino NG. After connecting again, I used Hyperterminal to see if I got in any data. Nothing....

Any ideas Kuk?

Edit: The characters show a little different in Hyperteminal, the copy/past changed it. I think it is still ok to see if there is a pattern.
65  Forum 2005-2010 (read only) / Troubleshooting / Re: Interfacing Arduino with Ericsson chatboard on: February 06, 2008, 11:32:06 am
Cool, thanks!

I haven't connected ground to Arduino ground currently (I connected chatboard ground to the ground pin of the vreg). Could that cause the garbage?

JD
66  Forum 2005-2010 (read only) / Troubleshooting / Re: Interfacing Arduino with Ericsson chatboard on: February 06, 2008, 11:26:06 am
Quote
i forgot:

you dont know about the character encoding of the keyboard, do you? if the garbage you get is reproducable (always the same for a certain key) it's probably no garbage. and don't let the garbage (when no key is pressed) discourage you. when debuggig midi-input, i experienced the same with my (midi)keyboard and this gave me leepless nights. when i got the hardware right i learned, that the keyboard was just sending some status information continouusly, which could just be ignored.

I am getting garbage all the time... I can't see very well if there is a change in the data when I press a key.
67  Forum 2005-2010 (read only) / Troubleshooting / Re: Interfacing Arduino with Ericsson chatboard on: February 06, 2008, 11:22:41 am
Hi Kuk,

Quote
not sure if it will help as this old news. but you can just take out the atmega on your arduino and use the RX TX pins then to communicate directly from the keyboard to you computer. i've never used "software serial" on the arduino, so can't comment on its reliabilty. but i think it could be helpful for debugging to rule out programming issues.

I think this would be a nice test to start with. So, to be sure I understand this correctly: I can remove the Atmega chip from the socket on the Arduino, connect the rx and tx coming from the chatboard to pins 0 & 1 on Arduino and then connect the Arduino (through USB) to my PC?

If it would work this way, that would be nice! I will play a little with baudrate too.

Thanks

JD
68  Forum 2005-2010 (read only) / Troubleshooting / Interfacing Arduino with Ericsson chatboard on: February 06, 2008, 09:09:00 am
I am trying to interface my Arduino with an Ericsson CHA-01 chatboard:


I have found various websites with information to do this, but I can get it to work. One of the sites is http://brolinembedded.se/projects/keyboard/. What I have found (some from other websites) is:
- VCC should be 5V
- Serial transmission is at TTL level at 9600,N,8,1
- The keyboard uses about 200mah

When I wasn't aware about the amp draw, I have tried to use the 5V directly from Arduino. That didn't work. I contacted Ericsson and they told me that I should expect the chatboard to draw 200mah. So, I set up a breadboard with a voltage regulator. Powered it with 9V from an adapter and the 5V from regulator goes to VCC on the chatboard.

I have used the SoftwareSerial to receive data on pin 2 (Arduino) at 9600kbps. I get data, also if I don't type (maybe even just if I don't type) but it is all garbage (characters like: ÅÄÖËÜåäöëü). It's even a constant stream of garbage. I seem to get some data (sometimes) when power to the chatboard is disconnected.

If someone can come up with hints where to look at, I am happy to hear from you!

Tonight I will post code.
69  Forum 2005-2010 (read only) / Troubleshooting / Re: Diff. in burning sketch from IDE and direct on: November 25, 2007, 12:55:17 pm
This is the procedure I follow:
1. Connect ICSP wire from pc to Arduino (led on pin13 already lights up)
2. Power Arduino with external power supply
3. Burn hex file through ICSP
4. Remove power from Arduino
5. Remove ICSP programmer from Arduino

When I apply power again, I run into this problem.
70  Forum 2005-2010 (read only) / Troubleshooting / Re: Diff. in burning sketch from IDE and direct on: November 11, 2007, 12:23:25 pm
Thanks Daniel, but I have powered my Arduino with a 9V/450mah power supply and I used a parallel port programmer (STK-200) and got the problems mentioned above.

This setup should have worked, right?
71  Forum 2005-2010 (read only) / Troubleshooting / Diff. in burning sketch from IDE and direct on: November 10, 2007, 11:47:21 am
I am working on a sketch that burns a led 3 times to show that my program has started. When I do this from within the IDE, this works nice. When I burn the hex with my programmer, the program also starts, but the led blink very dim. I have to keep my hands above the led (on pin 13) to keep it away from (sun)light to be able to see the blinking.

Can anyone explain this?
72  Forum 2005-2010 (read only) / Troubleshooting / Re: Is Arduino serial on TTL level? on: November 04, 2007, 05:43:30 am
Thank you very much for your reply!
73  Forum 2005-2010 (read only) / Troubleshooting / Is Arduino serial on TTL level? on: November 03, 2007, 02:44:37 pm
I would like to know if Arduino works with TTL level serial data or not? Also, how about if I use other pins than the standard serial pins, for example with the softserial library?

Thanks in advance!
74  Forum 2005-2010 (read only) / Troubleshooting / Re: Can someone verify my schematic? on: September 12, 2007, 06:10:29 am
I found a solution to buy the parts from digikey. They seem to have a Euro 8.00 handling charge and shipping is freakin' expensive (Euro 18 to The Netherlands).

Anyway, I could buy that LP2981 if I really wanted, but I can't find a package for it in the Eagle library to add it to my schematic. Then, the 78M05Ct SMT that was mentioned is hard to find anywhere on the internet. Also, didn't find the correct package for it in Eagle.

I am also having a hard time to find 1206 smd resistors on the digikey website (I need 1K and 10K).

I really need some pointers to the problems mentioned above to get motivated again. I really want to finish this...

I hope someone wants to jump in!

Edit: Typos and added resistor values
75  Forum 2005-2010 (read only) / Troubleshooting / Re: Can someone verify my schematic? on: September 11, 2007, 02:31:31 am
Quote
I sampled them from TI, but you can find them at

http://www.digikey.com/scripts/DkSearch/dksus.dll?Detail?name=LP2981IM5-5.0CT-ND

These are fixed 5V regulators, but only 100mA output, plus they have an enable pin.  They take different capacitor values than the 78x05.

Is 100mA enough? I am not sure about this.

Digikey is one of the suppliers I could buy on a regular basis, but I would need to have a credit card for that and I don't have one. They don't accept PayPal payments  smiley-sad
Pages: 1 ... 3 4 [5] 6 7 ... 28