Showing posts with label of. Show all posts
Showing posts with label of. Show all posts

Saturday, August 27, 2016

AT Command mode of HC 05

AT Command mode of HC 05


HC-05 Bluetooth Module support both Master and Slave roles. We can set it in AT Command mode. There are a number of variant of HC-05, and different ways to enter AT Command mode. For my samples, there is a button on the lower-right, above EN pin. Its used to enter AT Command mode when power-on.



This video show how to connect PC to HC-05, via FTDI USB-to-Serial adapter, power-on HC-05 in AT Command mode, and enter AT Command using Arduino Serial Monitor to check setting of HC-05.


Please notice both FTDI USB-to-Serial adapter and HC-05 have to work on the same voltage, both 3.3V or both 5V.

- Connect FTDI and HC-05
FTDI Tx - HC-05 Rx
FTDI Rx - HC-05 Tx
FTDI GND - HC-05 GND
(no power apply to HC-05 now)

- Connect FTDI to PC using USB cable.
- You can check the COM port connect to FTDI in Deviec Manager.
- Start Arduino IDE, and run Tools > Serial Monitor.
- Set baud rate 38400 and select "both NL & CR".

- Press the on-board button of HC-05.
- Apply power to HC-05.
- The on-board LED of HC-05 will blink slowly.
- Now its in AT Command mode.

- You can type AT command in Arduino Serial Monitor to check or set the setting of HC-05.

Some useful command:
AT : return OK if connect correctly.
AT+NAME : get/set name of the device. Nothing return in my sample.
AT+ADDR : display default address
AT+VERSION : display firmware version
AT+UART : get/set serial communication setting; such as baud, number of stop bit, and parity.
AT+ROLE: get/see role of bt module(1=master/0=slave)
AT+RESET : Reset and exit AT mode
AT+ORGL : Restore factory settings
AT+PSWD: get/set default PIN

reference:
- iteadstudio: Serial Port Bluetooth Module (Master/Slave) : HC-05
- HC-03/05 Embedded Bluetooth Serial Communication Module
AT command set



Get

Read more »

Fritzing parts of ESP8266 based WiFi module

Fritzing parts of ESP8266 based WiFi module


Just find a GitHub provide Fritzing part for an ESP8266-based WiFi module.


Get

Read more »

Friday, August 26, 2016

Building Arduino Projects for the Internet of Things

Building Arduino Projects for the Internet of Things


Building Arduino Projects for the Internet of Things: Experiments with Real-World Applications

This is a book about building Arduino-powered devices for everyday use, and then connecting those devices to the Internet. If youre one of the many who have decided to build your own Arduino-powered devices for IoT applications, youve probably wished you could find a single resource--a guidebook for the eager-to-learn Arduino enthusiast--that teaches logically, methodically, and practically how the Arduino works and what you can build with it.
Building Arduino Projects for the Internet of Things: Experiments with Real-World Applications is exactly what you need. Written by a software developer and solution architect who got tired of hunting and gathering various lessons for Arduino development as he taught himself all about the topic, this book gives you an incredibly strong foundation of Arduino-based device development, from which you can go in any direction according to your specific development needs and desires.


Readers are introduced to the building blocks of IoT, and then deploy those principles to by building a variety of useful projects. Projects in the books gradually introduce the reader to key topics such as internet connectivity with Arduino, common IoT protocols, custom web visualization, and Android apps that receive sensor data on-demand and in realtime. IoT device enthusiasts of all ages will want this book by their side when developing Android-based devices.


What Youll Learn:
  • Connect an Arduino device to the Internet
  • Creating an Arduino circuit that senses temperature
  • Publishing data collected from an Arduino to a server and to an MQTT broker
  • Setting up channels in Xively
  • Setting up an app in IBM Bluematrix
  • Using Node-RED to define complex flows
  • Publishing data visualization in a web app
  • Reporting motion-sensor data through a mobile app
  • Creating a remote control for house lights
  • Creating a machine-to-machine communication requiring no human intervention
  • Creating a location-aware device


Get

Read more »

Monday, August 22, 2016

Example of using jSSC communicate between JavaFX and Arduino Uno via USB Serial port

Example of using jSSC communicate between JavaFX and Arduino Uno via USB Serial port


Prepare a simple sketch run on Arduino Uno to send a counting number to serial port, tested on Windows 10.

BlinkUSB.ino
/*
* Send number to Serial
*/
int i = 0;

// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
Serial.begin(9600);
}

// the loop function runs over and over again forever
void loop() {

Serial.print(i);
i++;

digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

Read last post to "Prepare jSSC - download and add library to NetBeans, and create project using jSSC library".

modify the java code, JavaFX_jssc_Uno.java
/*
* Example of using jSSC library to handle serial port
* Receive number from Arduino via USB/Serial and display on Label
*/
package javafx_jssc_uno;

import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.Scene;
import javafx.scene.control.ComboBox;
import javafx.scene.control.Label;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import jssc.SerialPort;
import static jssc.SerialPort.MASK_RXCHAR;
import jssc.SerialPortEvent;
import jssc.SerialPortException;
import jssc.SerialPortList;

public class JavaFX_jssc_Uno extends Application {

SerialPort arduinoPort = null;
ObservableList<String> portList;

Label labelValue;

private void detectPort(){

portList = FXCollections.observableArrayList();

String[] serialPortNames = SerialPortList.getPortNames();
for(String name: serialPortNames){
System.out.println(name);
portList.add(name);
}
}

@Override
public void start(Stage primaryStage) {

labelValue = new Label();

detectPort();
final ComboBox comboBoxPorts = new ComboBox(portList);
comboBoxPorts.valueProperty()
.addListener(new ChangeListener<String>() {

@Override
public void changed(ObservableValue<? extends String> observable,
String oldValue, String newValue) {

System.out.println(newValue);
disconnectArduino();
connectArduino(newValue);
}

});

VBox vBox = new VBox();
vBox.getChildren().addAll(
comboBoxPorts, labelValue);

StackPane root = new StackPane();
root.getChildren().add(vBox);

Scene scene = new Scene(root, 300, 250);

primaryStage.setTitle("Hello World!");
primaryStage.setScene(scene);
primaryStage.show();
}

public boolean connectArduino(String port){

System.out.println("connectArduino");

boolean success = false;
SerialPort serialPort = new SerialPort(port);
try {
serialPort.openPort();
serialPort.setParams(
SerialPort.BAUDRATE_9600,
SerialPort.DATABITS_8,
SerialPort.STOPBITS_1,
SerialPort.PARITY_NONE);
serialPort.setEventsMask(MASK_RXCHAR);
serialPort.addEventListener((SerialPortEvent serialPortEvent) -> {
if(serialPortEvent.isRXCHAR()){
try {
String st = serialPort.readString(serialPortEvent
.getEventValue());
System.out.println(st);

//Update label in ui thread
Platform.runLater(() -> {
labelValue.setText(st);
});

} catch (SerialPortException ex) {
Logger.getLogger(JavaFX_jssc_Uno.class.getName())
.log(Level.SEVERE, null, ex);
}

}
});

arduinoPort = serialPort;
success = true;
} catch (SerialPortException ex) {
Logger.getLogger(JavaFX_jssc_Uno.class.getName())
.log(Level.SEVERE, null, ex);
System.out.println("SerialPortException: " + ex.toString());
}

return success;
}

public void disconnectArduino(){

System.out.println("disconnectArduino()");
if(arduinoPort != null){
try {
arduinoPort.removeEventListener();

if(arduinoPort.isOpened()){
arduinoPort.closePort();
}

} catch (SerialPortException ex) {
Logger.getLogger(JavaFX_jssc_Uno.class.getName())
.log(Level.SEVERE, null, ex);
}
}
}

@Override
public void stop() throws Exception {
disconnectArduino();
super.stop();
}

public static void main(String[] args) {
launch(args);
}

}



Next:
- JavaFX + jSSC - read byte from Arduino Uno, read from Analog Input

Get

Read more »

Sunday, August 21, 2016

Clash of Clans 7 200 13 APK for Android

Clash of Clans 7 200 13 APK for Android



COC update
Clash of Clans 

Adalah game bergenre Strategy yang dikembangkan oleh Supercell untuk perangkat mobileberbasis Android dan iOS. Game ini seringkali menduduki posisi 10 besar sebagai game Top Grossing di App Store dan baru-baru ini, Clash of Clans sudah memasuki pasaran Android di Google Play.

Kamu bisa mengunduh APK Clash of Clans ini secara gratis dan dibutuhkan koneksi internet untuk memainkan game ini. Game ini bercerita tentang pertarungan antar clan di masa lalu. Kamu akan berperan sebagai pimpinanclan, yang mana kamu harus membangun desa dan melatih pasukan tempur untuk melindungi desa atau menyerang desa lain untuk mendapatkan sumber daya alam dan harta kekayaan desanya. Agar memiliki desa yang kuat, kamu membutuhkan peralatan pertahanan seperti meriam, barrack dan benda-benda lainnya.

screen shot  




YOUTUBE





diskripsi singkat


Dari barbar kemarahan penuh dengan kumis yang mulia untuk pyromaniac penyihir , meningkatkan tentara Anda sendiri dan memimpin klan Anda untuk kemenangan ! Membangun desa Anda untuk menangkis penyerang , pertempuran melawan jutaan pemain di seluruh dunia , dan menempa sebuah klan yang kuat dengan orang lain untuk menghancurkan klan musuh .

CATATLAH! Clash of Clans bebas untuk men-download dan bermain , namun beberapa item game juga dapat dibeli dengan uang sungguhan . Jika Anda tidak ingin menggunakan fitur ini , silakan mengatur proteksi password untuk pembelian dalam pengaturan aplikasi Play Store Google Anda . Juga , di bawah Persyaratan Layanan dan Kebijakan Privasi , Anda harus minimal 13 tahun untuk bermain atau men-download Clash of Clans .

Koneksi jaringan juga diperlukan


Get

Read more »

Thursday, August 18, 2016

Facebooks Korean Top 10 of 2014

Facebooks Korean Top 10 of 2014


Real quick here, Facebook put out a Year-in-Review site filled with Top-10 lists, including two focused on Korea. Nothing special or surprising here, which makes me wonder if its been edited or filtered at all, because if I were to compile a Top-10 List for Korea 2014, it would certainly include Kim Yuna but where is any mention of Sewol, especially on a list focused on SNS?

Anyway here they are: supposedly the hottest topics discussed on Facebook in Korea in 2014, and the most checked-into places.

?? ?? - ??

Popular Topics - Korea

  1. ???
    Kim Yuna
    (retired this year after a controversial Olympics judging decision)
  2. ??????
    Valentines Day
  3. ??? ???
    Ebola virus
  4. 2014? ?? ???
    2014 Winter Olympics
    (South Korea took 3 golds, almost a fourth)
  5. ??
    The Pope
    (The Pope visited Korea this year for Asian Youth Day and presided over a public Catholic mass in downtown Seoul that was attended by huge numbers)
  6. ???
    The Super Bowl
  7. ???
    Park Ji-sung
  8. MTV ??? ?? ???
    MTV Video Music Awards
  9. ???
    April Fools Day
  10. ??? ??
    Asian Games
    (The Asian Games were hosted by Incheon this year)

?? ?? ??
Popular check-in Places - Korea

  1. ????
    Lotte World
  2. ????
    Namsan Tower (or "N Seoul Tower")
  3. ????
    Everland
  4. ??
    Myeong-dong
  5. ??
    Hongdae
  6. ?????
    Jamsil Baesball Stadium
  7. ?????????
    Dongdaemun Design Plaza
    (opened this year)
  8. ?????????
    Yeouido Hangang Park
    (site of a popular Fireworks Festival and a well-known Cherry Blossom festival)
  9. ???
    Daehangno
  10. ???
    Gyeongbokgung

Get

Read more »

Friday, August 12, 2016

Abusing the Internet of Things Blackouts Freakouts and Stakeouts

Abusing the Internet of Things Blackouts Freakouts and Stakeouts


Abusing the Internet of Things: Blackouts, Freakouts, and Stakeouts

A future with billions of connected "things" includes monumental security concerns. This practical book explores how malicious attackers can abuse popular IoT-based devices, including wireless LED lightbulbs, electronic door locks, baby monitors, smart TVs, and connected cars.

If you’re part of a team creating applications for Internet-connected devices, this guide will help you explore security solutions. You’ll not only learn how to uncover vulnerabilities in existing IoT devices, but also gain deeper insight into an attacker’s tactics.
  • Analyze the design, architecture, and security issues of wireless lighting systems
  • Understand how to breach electronic door locks and their wireless mechanisms
  • Examine security design flaws in remote-controlled baby monitors
  • Evaluate the security design of a suite of IoT-connected home products
  • Scrutinize security vulnerabilities in smart TVs
  • Explore research into security weaknesses in smart cars
  • Delve into prototyping techniques that address security in initial designs
  • Learn plausible attacks scenarios based on how people will likely use IoT devices


Get

Read more »

Sunday, August 7, 2016

Full story of my coding life

Full story of my coding life


This is the full story of my coding life:

  I began coding at the age of 10. My first things were cheating using Cheat Engine, I cheat games such as Plants vs Zombies, Candy Crush Saga, GTA San Andreas, and more. Then on school, I use some computers there, creating some small things, such as pranking them that the computer will be destroyed in some seconds, then it will just shutdown. The language I used was VBScript and simple DOS batch. I think of doing more small things on breaktime. And yeah, I beat higher levels on school. And when I was Grade 6, It was almost half a year I was using the computers. Until they decided to put a password on it. So they said I can only use the computers with permission from the principal. I didnt use the computers anymore. Instead, I just used my Dads laptop to work on anything. I created small programs such as Shutdown Scheduler, Windows 8 Look-Like Start Menu, Doodle Master App (this was for my friend). I and my friend created the website called Doodle Master Philippines. Doodle Master App was my first program for a friend. so after times passed, we decided to close the website. On summer, I started exploring another OS called Android, my mom gave her phone to me, it was with Android though. So I rooted my phone before fixing it (the fixer didnt know it was rooted, because rooting your Android device voids your warranty, also if you dont know what root means, Google this: "root android"). I knew a lot of commands on the OS, until I knew it was Linux also. I tried to install Ubuntu (I used Wubi to install it), then I started syncing the repository of CyanogenMod, I successfully sync it (took too long to finish it), then I downloaded some kernel sources for my device, I started building it, but it failed. I never finished building CyanogenMod. I tried to use Ubuntu now, tried it for gaming, I realized it was 2x faster than Windows, I enjoyed Ubuntu. Now I decided to go back to Windows and start coding anything. I created programs like NetSet, it was fun doing the first program, now I know a lot about coding now.

Get

Read more »

Sunday, July 31, 2016

Encyclopedia of Electronic Components

Encyclopedia of Electronic Components


Encyclopedia of Electronic Components Volume 3: Sensors for Location, Presence, Proximity, Orientation, Oscillation, Force, Load, Human Input, Liquid ... Light, Heat, Sound, and Electricity

Want to know how to use an electronic component? This third book of a three-volume set includes key information on electronics parts for your projects--complete with photographs, schematics, and diagrams. Youll learn what each one does, how it works, why its useful, and what variants exist. No matter how much you know about electronics, youll find fascinating details youve never come across before.

Perfect for teachers, hobbyists, engineers, and students of all ages, this reference puts reliable, fact-checked information right at your fingertips--whether youre refreshing your memory or exploring a component for the first time. Beginners will quickly grasp important concepts, and more experienced users will find the specific details their projects require.

Volume 3 covers components for sensing the physical world, including light, sound, heat, motion, ambient, and electrical sensors.

  • Unique: the first and only encyclopedia set on electronic components, distilled into three separate volumes
  • Incredibly detailed: includes information distilled from hundreds of sources
  • Easy to browse: parts are clearly organized by component type
  • Authoritative: fact-checked by expert advisors to ensure that the information is both current and accurate
  • Reliable: a more consistent source of information than online sources, product datasheets, and manufacturers tutorials
  • Instructive: each component description provides details about substitutions, common problems, and workarounds
  • Comprehensive: Volume 1 covers power, electromagnetism, and discrete semi-conductors; Volume 2 includes integrated circuits, and light and sound sources; Volume 3 covers a range of sensing devices.




Get

Read more »