![]() | ![]() | ![]() |
| | #61 |
|
so can u help me with any material or code of making interfaces
| |
| |
| | #62 |
|
Hmmm, do you mean help or do it for you :P
| |
| |
| | #63 |
|
i would be pleased if you guide me, i want to use visual studio.but im confused since for USART and transmission of data through rs232 i used assembly language, i wonder if visual studio would allow me to create interface using assembly language. but if the interface is made by C or C++ would they be able to match with the code of turning motor because i have written it using assembly language. could u please make an interface for me then i would try to make it to communicate with rs232 then if i fail to make them communicate then i would be happy if u do it for me
| |
| |
| | #64 |
|
Can you download C++ (2008) It's free from microsoft, I could write you up some code, or the whole program I guess if I find the time.
| |
| |
| | #65 |
|
yes i have downloaded it
| |
| |
| | #66 |
|
Have you played around with it yet?
| |
| |
| | #67 |
|
iam in a place where internet is a problem i hardly access it and the bandwith is very small .i did not know that i have to be online when installing it. im trying my best to have it installed. but i have also got NetBeans IDE 6.7.1 installed in my computer and by tomorow i would know how it works. but i promise i would ask for visual c++ 2008 somewhere if i have a problem of installing it online.
| |
| |
| | #68 |
|
Where are you from anyways?
| |
| |
| | #69 |
|
Im from Southern Africa in Lesotho
| |
| |
| | #70 |
|
i have successfuly installed c++ 2008, like i promised. i have made an interface using JFrameBuilder(JBF_331). but it support java only and the code looks like this: Code: import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/**
* Summary description for turn
*
*/
public class turn extends JFrame
{
// Variables declaration
private JButton jButton1;
private JButton jButton2;
private JPanel contentPane;
// End of variables declaration
public turn()
{
super();
initializeComponent();
//
// TODO: Add any constructor code after initializeComponent call
//
this.setVisible(true);
}
private void initializeComponent()
{
jButton1 = new JButton();
jButton2 = new JButton();
contentPane = (JPanel)this.getContentPane();
//
// jButton1
//
jButton1.setText("clockwise");
jButton1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
jButton1_actionPerformed(e);
}
});
//
// jButton2
//
jButton2.setText("anticlockwise");
jButton2.setMaximumSize(new Dimension(151, 25));
jButton2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
jButton2_actionPerformed(e);
}
});
//
// contentPane
//
contentPane.setLayout(null);
addComponent(contentPane, jButton1, 26,32,83,28);
addComponent(contentPane, jButton2, 194,38,108,28);
//
// turn
//
this.setTitle("turn - extends JFrame");
this.setLocation(new Point(76, 59));
this.setSize(new Dimension(390, 300));
}
/** Add Component Without a Layout Manager (Absolute Positioning) */
private void addComponent(Container container,Component c,int x,int y,int width,int height)
{
c.setBounds(x,y,width,height);
container.add(c);
}
//
// TODO: Add any appropriate code in the following Event Handling Methods
//
private void jButton1_actionPerformed(ActionEvent e)
{
System.out.println("\njButton1_actionPerformed(ActionEvent e) called.");
// TODO: Add any handling code here
}
private void jButton2_actionPerformed(ActionEvent e)
{
System.out.println("\njButton2_actionPerformed(ActionEvent e) called.");
// TODO: Add any handling code here
}
;
}
new turn();
}
}
Code: private void jButton1_actionPerformed(ActionEvent e)
{
}
private void jButton2_actionPerformed(ActionEvent e)
{
}
| |
| |
| | #71 |
|
I looked into this idea a while ago since I am currently taking a Java class. RS232 in Java for Windows | Sebastian Kuligowski's Home Page | |
| |
| | #72 |
|
thanks i will look at it. i have installed C++ 2008 i would be glad if u do that code for me,
| |
| |
| | #73 |
|
I'll post it tomorrow, getting late here
| |
| |
| | #74 |
|
Im just seggesting. What about if you write the code in such away that, if clicking the button clockwise on the interface then a letter C must be send through rs232 then on the receiving side on the code of turning motor, i will check the received bit and if it is C then i will call the Subroutine that turn the motor clockwise. The same thing aplies if clicking the button anticlockwise then a letter A must be sent and on the receiving side i will call subroutine anticlockwise that would rotate the motor anticlockwise directon
| |
| |
| | #75 |
|
Here is your program and A video of it as promised! The GUI you can fix up yourself if need be. I hope you enjoy ![]() (Sorry I don't have any stepper motors around so I just used an LCD to prove the point) YouTube - C and A usart Last edited by birdman0_o; 12th November 2009 at 04:44 PM. | |
| |
|
| Tags |
| control, home, light, smart, system |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Guys this is my home made 2.1 Home Theater System | pasanlaksiri | Electronic Projects Design/Ideas/Reviews | 40 | 11th November 2009 05:07 AM |
| Traffic light control system with timer display | hocklin12 | Electronic Projects Design/Ideas/Reviews | 6 | 7th May 2009 09:10 PM |
| smart traffic light: HELP! | Crystal86 | Electronic Projects Design/Ideas/Reviews | 3 | 22nd January 2009 04:17 PM |
| smart home using blue tooth | jayanthi | Electronic Projects Design/Ideas/Reviews | 4 | 4th September 2008 04:29 PM |
| traffic light control system | samcheetah | Electronic Projects Design/Ideas/Reviews | 3 | 3rd May 2004 07:30 PM |