Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 5th November 2009, 02:46 AM   #61
Default

so can u help me with any material or code of making interfaces
lebohangmaphothoane is offline  
Old 5th November 2009, 03:20 AM   #62
Default

Hmmm, do you mean help or do it for you :P
__________________
Mike
My website: www.ElectroBird.net
birdman0_o is online now  
Old 5th November 2009, 12:46 PM   #63
Default

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
lebohangmaphothoane is offline  
Old 5th November 2009, 03:33 PM   #64
Default

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.
__________________
Mike
My website: www.ElectroBird.net
birdman0_o is online now  
Old 7th November 2009, 12:14 AM   #65
Default

yes i have downloaded it
lebohangmaphothoane is offline  
Old 7th November 2009, 06:57 PM   #66
Default

Have you played around with it yet?
__________________
Mike
My website: www.ElectroBird.net
birdman0_o is online now  
Old 9th November 2009, 12:06 AM   #67
Default

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.
lebohangmaphothoane is offline  
Old 9th November 2009, 03:53 AM   #68
Default

Where are you from anyways?
__________________
Mike
My website: www.ElectroBird.net
birdman0_o is online now  
Old 11th November 2009, 01:26 AM   #69
Default

Im from Southern Africa in Lesotho
lebohangmaphothoane is offline  
Old 11th November 2009, 02:00 AM   #70
Default

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();
	}


}
i do not know how to write a code that can transmit data through rs232 using java language, im familiar with assembly language. the above code, i did not write it but i can see that i have to write instructions that would transmit and receive data under these two classes
Code:
 private void jButton1_actionPerformed(ActionEvent e)
	{
          }
       private void jButton2_actionPerformed(ActionEvent e)
	{
         }
lebohangmaphothoane is offline  
Old 11th November 2009, 02:27 AM   #71
Default

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
__________________
Mike
My website: www.ElectroBird.net
birdman0_o is online now  
Old 11th November 2009, 03:04 AM   #72
Default

thanks i will look at it. i have installed C++ 2008 i would be glad if u do that code for me,
lebohangmaphothoane is offline  
Old 11th November 2009, 04:26 AM   #73
Default

I'll post it tomorrow, getting late here
__________________
Mike
My website: www.ElectroBird.net
birdman0_o is online now  
Old 12th November 2009, 03:55 AM   #74
Default

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
lebohangmaphothoane is offline  
Old 12th November 2009, 04:42 PM   #75
Default

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
Attached Files
File Type: zip UART Improved.zip (303.1 KB, 2 views)
__________________
Mike
My website: www.ElectroBird.net

Last edited by birdman0_o; 12th November 2009 at 04:44 PM.
birdman0_o is online now  
Reply

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



All times are GMT. The time now is 01:49 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker