Posts

Showing posts from June, 2019
Image
Control Light Using JAVA and Arduino Programing You can communicate with and control an Arduino from Java running on another computer. Java Code: package Kittu; import arduino.*; import javax.swing.JOptionPane; public class NewJFrame extends javax.swing.JFrame { Arduino aa=new Arduino();     public NewJFrame() {         super("Home Automation");         initComponents();         aa.setPortDescription("COM8");         aa.openConnection();         Message.setText("Light is Off");     }     @SuppressWarnings("unchecked")     // <editor-fold defaultstate="collapsed" desc="Generated Code">                               private void initComponents() {         Btn1 = new javax.swing.JButton();         Mes...