Loading...
  Show Posts
Pages: [1] 2
1  Using Arduino / Microcontrollers / Re: Weird issue: Micro won't transmit win8 on: December 30, 2012, 04:13:26 pm
I have to admit that I am at times far too impatient.  
The sketch works but once loaded it will not write to the serial monitor.  I must first reset the micro, then reset it a second time, then open up the serial monitor to see the table being printed.  The first rest causes the micro to lose the com port.  The second reset re-establishes the port and allows the serial monitor to be printed to.

I have 0 experience and less knowledge but hopefully what observation I just posted confirms your suspicion that you posted above.

Thank you,

Paul
2  Using Arduino / Microcontrollers / Re: Weird issue: Micro won't transmit win8 on: December 29, 2012, 09:45:13 am
I am having a similar problem with a micro R3, 1.0.3 on a win7 laptop.  

I can run the "AnalogReadSerial" sketch and I get the output in the serial monitor but if I run the ASCIItable sketch I do not see anything in the serial monitor.

Two years ago I had a Teensy2 (same processor as the micro) on this same netbook and I did not have this problem.

Any help would be appreciated.

Thank you,

Paul Hirst
3  Using Arduino / Interfacing w/ Software on the Computer / Re: Gibberish running ASCIITable through Bluetooth****Solved**** on: February 07, 2011, 07:48:53 pm
Changed the baud rate on the bluetooth from 115200 to 9600 by wiring 3.3v to pin4 of the module (pin5 on the breakout).

ASCII Table was displayed in the serial monitor without a problem via bluetooth.

Paul Hirst


4  Using Arduino / Interfacing w/ Software on the Computer / Re: Gibberish running ASCIITable through Bluetooth on: February 06, 2011, 09:40:07 pm
I am running the ASCIITable sketch from the Examples in the Arduino IDE.  I ran from the IDE on my desktop PC and it worked well.  I ran it on the IDE on my laptop and it ran fine as well.  In both cases when I opened up the serial monitor the ASCII table was generated.

Next I tried to see if I could get the bluetooth module to communicate with the bluetooth in my laptop.

I upload the program to my Arduino mini pro off of my desktop PC.  I have wired the TX on the mini pro to the RX on the bluetooth module, and the RX on the mini to the TX on the Bluetooth module on a breadboard.

I turn on the bluetooth on my laptop and open the IDE and then the serial monitor.  Serial monitor shows COM10 which is the same as my bluetooth.

When I upload the sketch on the PC to the mini, I get "gibberish" in the serial monitor on the laptop.  I changed the baud rate on the serial monitor on the laptop to various speeds while changingthe baud rate in the COM10 to the same speed (serial baud rate 115200, COM10 rate 115200, serial 9600, COM10 9600 etc.).

The default baud rate of the bluetooth module is 115200 and I suspect that this is the problem.  

In the command sheet it shows that a HIGH on PIO7 will change the baud rate to 9600.  I will give that a try and make sure both COM10 and serial port baud rates are set at 9600.

Sorry for the long explanation, I am trying to give you the pertinent information.

Thank you,

Paul Hirst

5  Using Arduino / Interfacing w/ Software on the Computer / Gibberish running ASCIITable through Bluetooth****Solved**** on: February 05, 2011, 05:42:04 pm
Arduino Mini Pro 3.3V ATmega328
Bluetooth module is a Roving Network:  http://www.sparkfun.com/products/8550
Arduino0022

Running ASCIITable sketch with desktop.

Open serial monitor (Arduino0022) on Aspire One with Bluetooth.

I have changed the baud rate in the serial monitor and the COM port but I end up with this:

àþ˜þ˜€€þþ€þþààþ憆€þøà†æà†à†ž†à†˜ž˜à†àžøž˜æ˜æ€˜†˜†àž˜€ž†øæà†ø˜øž˜†øàž

The default baud rate on the bluetooth module is 115200.  Could this be the problem?

I have no programing or electronics experience.  Heck, I am amazed that I have got this far...LOL

Any help is appreciated.

Thanks,

Paul

6  Using Arduino / Project Guidance / Assistive keyboard on: January 29, 2011, 08:00:44 pm
I am on a long journey to make a myoelectric virtual wireless keyboard.  I know very little about electronics and nothing about code.  However, there are generous people such as those at Hacklabs in Toronto that are helping along the way. 

Currently I have a code for 5 input buttons to make a Teensy++2 a USB keyboard courtesy of Hacklabs. We ran out of time as I am a slow learner so there was not an opportunity to tidy up the code.  I will attempt to write code to allow the entry of numbers and symbols after I get to the next step.  At the moment I can use various combinations of the 5 buttons to type into my laptop.
Code:
#define maskC B00011111
#define unpress_time 200

int keymap[32] = {-1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,40,42,44,57,0};
//enter=40,backspace=42, tab=43, space=44, caps lock 57
void setup() {
  Serial.begin(115200);
  DDRC ^= maskC;
  PORTC ^= maskC;
}

void loop() {
  static byte keysdown = 0;
  static byte prevFull = 0;
  static byte prevFull_release = 0;
 
  static unsigned long tlpress = 0;
  static unsigned long tlunpress = 0;
 
  byte full = ~(PINC) & maskC;

  if(full && !keysdown) {
    keysdown = 1;
    tlpress = micros();
    tlunpress = 0;
  }
  else if(!full && keysdown) {
    keysdown = 0;
   
    Keyboard.set_key1(keymap[prevFull_release]);
    Keyboard.send_now();
    Keyboard.set_key1(0);
    Keyboard.send_now();
   
    tlunpress = 0;
    prevFull = 0;
    prevFull_release = 0;
  }
 
  if(keysdown) {
    if(full < prevFull) {
      tlunpress = millis();
      if((millis() - tlunpress) > unpress_time) {
        prevFull_release = prevFull;
      }
      prevFull = full;
    }
    else if(full > prevFull) {
      prevFull = full;
      prevFull_release = prevFull;
      tlunpress = 0;
      tlpress = millis();
    }
    else {
      //full == prevFull
      if(tlunpress != 0 && (millis() - tlunpress) > unpress_time) {
        prevFull_release = prevFull;
        tlunpress = 0;
      }
    }
  }
  delay(5);
}

The next is to make this a wireless keyboard to isolate the myoelectric and keyboard circuits from any display device.
I went to Creatroninc in Toronto and picked up a bluetooth module
http://www.sparkfun.com/products/8550
and a logic converter
http://www.sparkfun.com/products/8745

I soldered the headers to the converter and wired up the bluetooth to the converter and Teensy.

My question at this point is what do I have to do to this code to get the same results with the bluetooth as I do as a Usb keyboard?

Any assistance is most appreciated.  As you can tell from my questions that I am learning on the fly so please be patient.

Thank you very much.

Paul Hirst

7  Forum 2005-2010 (read only) / Troubleshooting / Re: Windows Vista fails to install driver for UNO on: December 21, 2010, 10:46:49 pm
Check that you are directing Vista to install the proper file.  There is a driver file that you should be pointing to .  Do not open the driver file.  I have an Uno and I have the software installed on XP, 7 and Vista without any problems.

Paul
8  Forum 2005-2010 (read only) / Interfacing / Re: need help with piezoelectric circuit on: December 15, 2010, 07:02:39 am
Hello David,

I am sorry to hear about your nerves being affected.  That will make my approach a poor choice for you.  

Paul  
9  Forum 2005-2010 (read only) / Interfacing / Re: need help with piezoelectric circuit on: December 14, 2010, 11:07:10 am
A team at Penn State developed a electro impulse device that used muscles in the person's temple instead of a switch.

This might be something to consider.

Using two inputs would give an X and Y axis movement for something like BLINK but I am getting off topic here.  One input to move X, one to move Y and move both to select.

PaulH
10  Forum 2005-2010 (read only) / Interfacing / Re: need help with piezoelectric circuit on: December 13, 2010, 09:37:10 pm
Hello David,  

I do not mean to be rude but does ALS affect the muscle or the nerves?  Reason I ask is that I am trying to make an idea I had 20+ years ago actually work.  
I want to use myoelectric signals, such as those used in prosthesis to generate data rather than to run motors.  I am quite a ways away from getting done but tonight I joined a group of people that want to create open source prosthesis  and they currently use myoelectric input.

My goal is to have multiple myoelectric inputs  to generate a data stream.  However, it could also be used as a single input with the system you are currently using.  I do not know how expensive the board would be to collect the myoelectric impulse but there would not be any moving parts to replace and electrodes are inexpensive.

Paul H

11  Forum 2005-2010 (read only) / Interfacing / Re: input from nerve stimulus on: December 14, 2010, 11:10:15 am
Thank you Ran, they were kind enough to contact me and tell me about the Penn State project as well as BLINK.

PaulH
12  Forum 2005-2010 (read only) / Interfacing / Re: input from nerve stimulus on: December 13, 2010, 09:57:57 pm
Thank you Richard!  Just posted a reply.  just started a discussion at the prosthesis forum to gather information myoelectric input.

I do hope that this develops as people with prosthesis find it almost impossible to use touch screens.  I am hoping that the Arduino could be used to send a data stream from myoelectric signals to PDAs and "smart phones".  

This could really help more people than I ever thought possible.  

Paul H
13  Forum 2005-2010 (read only) / Interfacing / Re: input from nerve stimulus on: December 13, 2010, 06:42:19 pm
Well, what a difference a new search makes!

Came across an open prosthesis project that is looking to use open source to reduce the costs and to come up with new ideas. They use myoelectric signals and will hopefully be able to steer me in the right direction to buy/make a myoelectric input board.

I guess my first step would be to get an Arduino, learn how to hook up five buttons (to mimic the myoelectric signal), and figure out how to make this generate the 120 "inputs.  After that, how to assign functions to the 120 inputs so that text can be generated.

Now where is that big red "that was easy" button.....


Again, any pointers would be appreciated.

Paul

14  Forum 2005-2010 (read only) / Interfacing / input from nerve stimulus on: December 13, 2010, 05:19:22 pm
First post so forgive me if this is not the correct forum.

Background-20+ years ago I designed a simple input device to convert nerve impulse to ACSII so that handicapped people could communicate. I understand that this was an over simplification but I was self taught and little to go on. Much to my shame I left it on the shelf.

I am looking for a schematic or a source for the sensors used in prosthesis but rather than have them used as input to control a motor, I want to use the signals in combinations to enable the individual to "type".  With 5 inputs, 120 outputs can be generated. Yes, there will be timing issues but that is where I hope the Arduino will come in.  Input A gives output 1, input B gives output 2, input A and B gives output 3, etc.

Yes, this is way over my head but if I do not start it now I never will. Yes I understand that there are several similar input devices but I have yet to find one specifically for the handicapped.  Not interested in any commercial venture, I want this to be open so those without $ can actually communicate with their children.

Thank you for your time,

Paul Hirst
15  Forum 2005-2010 (read only) / Workshops / Re: Arduino Interest in Toronto or Waterloo, Ontario on: January 19, 2011, 11:27:07 am
I had a wonderful time at Hacklabs in Toronto.  Very helpful and enthusiastic group.  Lots of very interesting projects in various stages of completion.  They took time to hear what my project was about, what I was having difficulty with, and then jumped into show me what was needed.  I am looking forward to visiting again!

I had no idea there was such a great resource so close to where I live as well as so close to a huge variety of excellent food establishments.  

I will also drop in to site3 shortly to see what they have to offer.

Paul

Pages: [1] 2