Tag: ENC28J60

How a Web Server on an STM32F103C8T6 can be used to control a Relay Switch

BluePill As A Web Server With A Relay

Here is the circuit showing how a Web Server on an STM32F103C8T6 can be used to control a Relay Switch: The Fritzing code used to create that diagram/image can be downloaded here. An ENC28J60 ethernet module is used to connect the STM32F103C8T6 (BluePill) to a network. Here is the source code for the sketch to …

Continue reading

How to keep an ENC28J60 Module from Freezing

ENC28J60 LAN Module

The ENC28J60 module is good for attaching an Arduino to a LAN or the Internet. The one real problem in doing so is how to keep an ENC28J60 module from freezing. No, not temperature wise ! 🙄  (‘Freezing’ in the sense of locking up, stop working, etc.) There are many Ethernet  arduino libraries for the …

Continue reading

Arduino as a Network Monitor

I have set up an Arduino as a Network monitor so I can be silently alerted if a WEB server on the LAN/Internet goes down. In a previous post, here, I show the relay circuit I am using in this sketch to flash a CFL lamp. This sketch also uses the same ENC28J60 module to …

Continue reading

Emergency Phone Call Alert to an Arduino via an Asterisk PBX

S108T02 Relay Circuit

Recently, I created this simple circuit (and corresponding code) which makes an emergency phone call alert to an Arduino via an Asterisk PBX.  This project was for someone who needed to be alerted (silently) if someone made an emergency phone call on their Asterisk PBX. By the way, the free and open source Asterisk PBX …

Continue reading

Arduino Leonardo WEB Server to Display Temperature and Humidity

Arduino Leonardo WEB Server to Display Temperature and Humidity

In a previous post titled Arduino Leonardo and SPI Communications, I documented how to connect the Arduino Leonardo to the ENC28J60 Ethernet module. This post takes things a bit further and adds a DHT22 Sensor. The Arduino Leonardo is used as a WEB Server to Display Temperature and Humidity information from the DHT22 sensor. The …

Continue reading

Arduino Leonardo and SPI Communications

Arduino Leonardo and SPI Communications using the ENC28J60 ethernet module

I just found out that my favorite Arduino of choice (the Leonardo) has a problem with SPI  “Serial Peripheral Interface” communications (if you need to use the SS pin).  For SPI (which is bidirectional) , the following pins are normally used: SS – Slave Select – digital 10. You can use other digital pins, but …

Continue reading

Connecting an Arduino to a LAN with the ENC28J60

ENC28J60 LAN Module

I picked up a couple of these modules:   from Elecrow.com so I could attach (communicate with and control) several of my Arduinos through a LAN connection. The main chip is the ENC28J60 from microchip.com. These modules are better than an Ethernet Shield in that you can easily attach these to any Arduino and they …

Continue reading