Pages: [1]   Go Down
Author Topic: Interfacing arduino to Power Point  (Read 1729 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I want to make a power point slide changer.
All I want to do is that assign two buttons on arduino, one for forward and another for backwards.
On pressing the forward button, i should be able to move to the next slide in power point and on pressing the backwards button i should be able to go back a slide.
Now I know arudino can send data to the serial port of the pc, but how can I interface the serial port to power point?
Can anyone guide me on this?
Logged

Maine
Offline Offline
Sr. Member
****
Karma: 10
Posts: 413
Caution: Explosives in use.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I want to make a power point slide changer.
All I want to do is that assign two buttons on arduino, one for forward and another for backwards.
On pressing the forward button, i should be able to move to the next slide in power point and on pressing the backwards button i should be able to go back a slide.
Now I know arudino can send data to the serial port of the pc, but how can I interface the serial port to power point?
Can anyone guide me on this?

By default, Power Point lets you change slides by pressing keys on the keyboard, or by clicking a mouse. The simplest solution would be to use an arduino leonardo to emulate a keyboard or mouse.
Logged

"Anyone who isn't confused really doesn't understand the situation."

Electronic props for Airsoft, paintball, and laser tag -> www.nightscapetech.com

UK
Offline Offline
Shannon Member
****
Karma: 184
Posts: 11164
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If Powerpoint is running on Windows, the simplest solution would be to use Gobetwino to send keystrokes to your applications based on command strings sent from the Arduino. Gobetwino isn't available for non-Windows platforms (as far as I know) but it would be easy enough to write your own application to generate keystrokes.

If you aren't committed to making your own hardware, you could probably get a wireless mouse for less than the cost of an Arduino.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If Powerpoint is running on Windows, the simplest solution would be to use Gobetwino to send keystrokes to your applications based on command strings sent from the Arduino. Gobetwino isn't available for non-Windows platforms (as far as I know) but it would be easy enough to write your own application to generate keystrokes.

If you aren't committed to making your own hardware, you could probably get a wireless mouse for less than the cost of an Arduino.


Hi peter,
Thank you for your reply. Can you tell me if gobetwino will work if i make a standalone board. I want to use the 328 controller and a bluetooth which can send data to the serial port of the pc, this will be a standalone remote control sort of a device.
Now pressing the buttons will send some ascii codes, and can they be used with gobetwino?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset



By default, Power Point lets you change slides by pressing keys on the keyboard, or by clicking a mouse. The simplest solution would be to use an arduino leonardo to emulate a keyboard or mouse.

Hi,
Well I wish to learn along the way, leanardo seems to be the simplest solution, but I am planning to build my own stand alone slide changer, and in the process want to learn all this.
The hardware is actually ready, I have a standalone pcb with atmega 328 smd, and a bluetooth which can send data to pc's serial port.
What I would like to do is to use that data (data can be sent according to wish or requirement) being recieved at serial port to run a slide show.
can you guide me?
Logged

Maine
Offline Offline
Sr. Member
****
Karma: 10
Posts: 413
Caution: Explosives in use.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset



By default, Power Point lets you change slides by pressing keys on the keyboard, or by clicking a mouse. The simplest solution would be to use an arduino leonardo to emulate a keyboard or mouse.

Hi,
Well I wish to learn along the way, leanardo seems to be the simplest solution, but I am planning to build my own stand alone slide changer, and in the process want to learn all this.
The hardware is actually ready, I have a standalone pcb with atmega 328 smd, and a bluetooth which can send data to pc's serial port.
What I would like to do is to use that data (data can be sent according to wish or requirement) being recieved at serial port to run a slide show.
can you guide me?

Depending on how the serial port is set up, Gobetwino should allow you to do this.

Also, keep in mind that bluetooth has a fairly limited range, 30 feet in low power mode IIRC.
Logged

"Anyone who isn't confused really doesn't understand the situation."

Electronic props for Airsoft, paintball, and laser tag -> www.nightscapetech.com

Offline Offline
Jr. Member
**
Karma: 4
Posts: 68
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Now I know arudino can send data to the serial port of the pc, but how can I interface the serial port to power point?

Hi,
if you know any .NET programming language (i.e. VB, C#) there is an easy way for controlling a power point presentation from code:

Code:
         string presPath = "c:/Temp/test_pps.ppt";
         //Create an instance of PowerPoint.
         Microsoft.Office.Interop.PowerPoint.Application app = new Microsoft.Office.Interop.PowerPoint.Application();

         // Show PowerPoint.
         app.Visible = Microsoft.Office.Core.MsoTriState.msoTrue;

         // Open a presentation.
         Microsoft.Office.Interop.PowerPoint.Presentations ppPres = app.Presentations;
         Microsoft.Office.Interop.PowerPoint.Presentation pres = ppPres.Open(presPath, MsoTriState.msoFalse, MsoTriState.msoTrue, MsoTriState.msoTrue);

         // Show presentation.
         pres.SlideShowSettings.Run();

// Here read a command from serial port (for example the ASCII char 'N' for next and 'P' for previous) and call
// pres.SlideShowWindow.View.Next(); or pres.SlideShowWindow.View.Next();


The previous code is in C# and some exception control should be added but is an example.

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset



Hi,
if you know any .NET programming language (i.e. VB, C#) there is an easy way for controlling a power point presentation from code:


Hi,
Well I do not know VB or C#, but I do know C++. Although I got a few ways to do it now, but I would still like to learn to create my own program to do such stuff. Is there a way where I can do something using C++, and which languages would you recommend I learn for being able to interface embedded hardware with windows or other operating systems, where I can control the programs in the OS using the hardware I build.
Logged

0
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3420
20 LEDs are enough
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
By default, Power Point lets you change slides by pressing keys on the keyboard, or by clicking a mouse. The simplest solution would be to use an arduino leonardo to emulate a keyboard or mouse.

Actually the simplest solution is to crack open an old keyboard and rewire the keyboard chip accordingly. This is trivial. It is also very simple to add some transistors to make the Arduino "push the buttons". Of course it is not considered very elegant but it is definitely much simpler than USB programming.
Logged

Check out my experiments http://blog.blinkenlight.net

Offline Offline
Jr. Member
**
Karma: 4
Posts: 68
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is there a way where I can do something using C++, and which languages would you recommend I learn for being able to interface embedded hardware with windows or other operating systems, where I can control the programs in the OS using the hardware I build

Yes, you can program in C++ but some knowledge of Windows environment is necessary (WIN32, MFC, COM), here is explained how to do an MFC application to automate Power Point using MFC (Microsoft Foundation Classes):

http://support.microsoft.com/kb/237554/en-us?fr=1

If you learn how to open a serial port on Windows and read/write data, you can easily create a communication link between Arduino and a client application on the PC.
If you already know C++ and object oriented programming, I suggest you to learn C# language for programming Windows applications.
 
Logged

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 5
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, but that application still needs to communicate with Powerpoint, or emulate a mouse / keyboard, which is not exactly trivial.

Logged

UK
Offline Offline
Shannon Member
****
Karma: 184
Posts: 11164
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, but that application still needs to communicate with Powerpoint, or emulate a mouse / keyboard, which is not exactly trivial.

It doesn't need to emulate a mouse if it is a mouse.

I don't see any part of this requirement that can't be met by a standard wireless mouse.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Pages: [1]   Go Up
Jump to: