Ads

Get STM32 tutorial using HAL at $10 for a limited time!

Saturday, May 16, 2015

Arduino and Ethernet Shield Tutorial - Control a LED from PC

In this tutorial, I will explain how to control a LED from PC using Arduino ethernet shield. The Arduino ethernet shield is use WIZnet W5100 ethernet chip. The advantage of using this chip over ENC28J60 is the TCP/IP stack is already implemented by hardware on this chip. With ENC chip the TCP/IP must implemented on the MCU that is interfaced to it.


This shield is also has a micro SD card socket to interfacing with a micro SD card. Arduino communicates with both W5100 and micro SD card using the SPI bus. This is on digital pins 13 (SCK), 12 (MISO), 11 (MOSI), 10 (SS for the W5100), and 4 (SS for the micro SD card). To make a program using this shield is very easy, because there is a library from Arduino both for ethernet and SD.

Tuesday, May 5, 2015

Arduino and ENC28J60 Module Tutorial - Ping Test from PC to Arduino

In this tutorial, I will explain how to use ENC28J60 ethernet module.


To use this module with Arduino, I will use EtherCard library. In this tutorial, I will make a simple code on Arduino, so a PC that connected to network can do a ping test to the Arduino. 

First thing to do is connect the ENC28J60 to Arduino using this connection:


Saturday, May 2, 2015

Java and PosgreSQL Tutorial 1 - Database Connection

In this tutorial I will share how to make an application with Java that use PostgreSQL database. I will use Netbeans IDE for this tutorial. Netbeans already has PostgreSQL library, so to use this library you can add to your project from Library folder (right click) then select Add Library. In the Add Library dialog, select PostgreSQL JDBC Driver.