Hello Everyone. I seem to be up against a wall with this one. I want to use the ps2 mouse with the Mega 2560. I got it wired up ok. The mouse's red light is on (getting power). I am using Arduino-1.0. I go to file, then Sketchbook, then Libraries, then ps2. It loads the program in just fine. When I click on the download arrow, it tries to compile, then gives me an error message. The message shows the full path to the file ps2, then it says "Error compiling. Error: WProgram.h: No such file or directory. I don't know if anyone else has had this same problem. I am new to everything and just learning. Could someone please shed some light on how I can get it to work correctly so it will execute? I will monitor this forum for any replies or you can e-mail me at bott17@roadrunner.com. I thank everyone for your time and attention.
I don't know if anyone else has had this same problem.
Lots of people have. The WProgram.h file was renamed to Arduino.h starting with 1.0.
WProgram.h is now Adriono.h
Ok. one last post before I shelve this Arduino Mega and invest in something else that might work such as the Basic Stamp. I have been trying over and over to get this Arduino to read this PS2 mouse. I uploads successfully but when I open the Serial Monitor, there is nothing happening. I tried to replace the wprogram.h with Arduino.h in the ps2.h file but that does not seem to work either. I'm ready to toss a worthless piece of junk into a box. Can anyone help or do whould I give it up and look at other Microcontrollers? Thanks anyone who can help shed some light.
What is your code? How is the mouse wired up? Do you have any debugging displays? What do they show?
With an attitude like that, don't expect much help.
A good start would be posting your code, inside the code tags. Are you using this library? Arduino Playground - Ps2mouse
Ok, I read your other posts and it seems that you are fairly new to this. I'm new to this platform, but I'm sure that the arduino is fully capable of communicating with a PS/2 mouse. I suspect you may need some pull-up resistors on the data and clock lines.
Ok. one last post before I shelve this Arduino Mega and invest in something else that might work such as the Basic Stamp.
After looking at your previous post, that might be the best choise.
You could try reading the sticky: Read this before posting a programming question
bott17:
Ok. one last post before I shelve this Arduino Mega and invest in something else that might work such as the Basic Stamp.
Hundreds of thousands of people have got the Arduino to work. Perhaps your methodology needs work?