Tag: Arduino

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

Switching 12V from a 5V Arduino

Switch 12V

I built a circuit to allow switching 12V from a 5V Arduino. Here is the wiring diagram and a picture of the actual circuit:         Get the Fritzing source HERE.¬† The side with two connections attaches to the 12V device being switched ON/OFF. The side with three¬† connectors,¬† connects to the 12V …

Continue reading

I2C Wire Chat Between Two Arduinos

Arduino 2Wite Chat

Someone asked me the other day if it was possible to have a ‘chat’ between Arduinos using the I2C Wire library. I came up with¬† ‘proof of concept’ code called ‘I2C Wire Chat Between Two Arduinos’. Here is the sketch: I2C Wire Chat Between Two Arduinos

Setup two Arduinos connected by a length of …

Continue reading

A Python script to run the Arduino MiniPirate Sketch

A while back I wrote about the BusPirate. You can view that post here. In it, I mention an Arduino sketch called the “MiniPirate” which allows you¬† to try some of the functions of the BusPirate on an Arduino. Over time, I have found that sketch to be very useful. You can use it to …

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

Wireless Bluetooth Module for your Arduino

Serial Bluetooth Module

If you’d like to wirelessly attach your Arduino to another device (such as a phone or tablet) via bluetooth, I’d recommend the serial bluetooth module from Elecrow.com. Here is what they look like:     The module has firmware from BOLUTEK. The PDF document with all of the available BOLUTEK commands is¬†BLK-MD-BC04-B_AT COMMANDS . I …

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

Atmel versus PIC Microcontrollers

Many years ago (I am old¬† ;-)) I was asked which microcontrollers are¬† best, ones from PIC (microchip.com) or ones from¬† Atmel (atmel.com). At the time I was asked, there was a lot of discussion about chip architecture, instruction sets and which chip was best. I thought at the time and still feel this way, …

Continue reading