Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Monitoring GPS Data with the NEO 6M and Arduino

I recently wrote a tutorial titled, Configuring Visual Studio Code for Arduino Development, because I’ve been exploring the Internet of Things (IoT). Up until recently I’ve only had hands on experience with Raspberry Pi, but I’ve been expanding my knowledge with Arduino.

I have an Arduino Uno and a GPS module, so I thought it’d be a good idea to demonstrate how to use the two together.

In this tutorial we’re going to see how to monitor a NEO 6M GPS module connected to an Arduino using a few lines of very simple code.

Read More

Configuring Visual Studio Code for Arduino Development

I’ve been playing around with an Arduino Uno recently, something new to me since I’ve always only used Raspberry Pi hardware. Many Arduino devices, or at least the Uno like I have are inexpensive and a lot of fun to play around with. However, the development experience out of the box isn’t exactly what I was familiar with or happy about. To develop and push code to an Arduino you need to use the Arduino Desktop IDE. If you’re like me, you’re a one IDE type of developer, so having to work in a different environment is a little less than ideal.

It doesn’t have to be that way when developing with Arduino though.

In this tutorial I’m going to walk you through configuring Visual Studio Code for Arduino development. You’ll be able to write code, deploy to hardware, and monitor the output.

Read More

Cross Compiling Golang Applications For Use On A Raspberry Pi

I recently invested in yet another Raspberry Pi, this time the new Raspberry Pi Zero W, which has wireless and bluetooth. I also made a leap and bought the camera module with it because the new official case by Raspberry Pi has a camera attachment. Probably the most popular development technology for Raspberry Pi is Python, but I am not a fan at all. Instead, I’ve been doing a lot of Go development and figured that would be my best bet when it comes to developing a camera application for the Raspberry Pi. The problem with this is that if I were to compile a Go application on the Raspberry Pi Zero itself, it would probably take ten years (I joke).

Cross compiling is a thing and we’re going to see how to do this via a different operating system and architecture, yet have it be compatible on the Raspberry Pi.

Read More

Connect To A Raspberry Pi And Pi Zero With A USB To TTL Serial Cable

When it comes to configuring a Raspberry Pi for the first time, there are a few options, many of which can be a pain. This includes configuration of a Raspberry Pi and the smaller Pi Zero. Previously I had written about using a Raspberry Pi as a headless unit, but in that tutorial there was an ethernet requirement. Recently I had written about connecting to a Pi Zero through a standard micro USB cable and SSH, which wasn’t difficult, but it required a few potentially time consuming steps.

Is there a better way to connect to and configure these Internet of Things (IoT) devices?

I wouldn’t necessarily call it a better way, but more of another option towards Raspberry Pi configuration. You can actually connect to the Raspberry Pi and Pi Zero through the available GPIO pins with a USB to TTL serial cable. We’re going to see how to do that.

Read More

Control An Onion Omega2 IoT Device With Websocket Communication

I’ve been all about websockets lately. Up until recently RESTful APIs have been my whole world, but they don’t accomplish everything and what they do accomplish may not be the best fit. Not too long ago I got my Onion Omega2 Internet of Things (IoT) device with a bunch of accessories and I’ve been playing around with them non-stop. Previously I had written about displaying system information on the OLED expansion, but I wanted to take it to the next level and display data received through a websocket.

Realistically you probably wouldn’t use a websocket to display data on an IoT OLED screen, but it opens the door to new possibilities. More specifically in the realm of home automation and anything else that needs to be very responsive or real-time. For example, what if you wanted to turn on the lights in your house, but are working with a low bandwidth and low spec IoT device that can’t process large RESTful payloads very fast. The Onion Omega2 is an example of such device and while we’re not going to explore home automation in this example, we’re going to see how to do websocket communication.

Read More

Display System Information On The Onion Omega2 OLED Expansion

So I was a recent Kickstarter backer for the Onion Omega2 Internet of Things (IoT) device. My package finally came and I wanted to see what I can do with it. My package included the Omega2, expansion dock, and OLED display so I figured it would be cool to write an application that displayed to the screen.

A problem I always had with the Raspberry Pi, my other favorite IoT device, is that I never knew the IP address or system information because I was always using it as a headless unit. With that in mind, I decided to write an application that displayed this information to the Onion Omega2 OLED screen at boot.

We’re going to see how to write a basic script to show system information using Python and the OLED extension library.

Read More

Search

Follow Us

The Polyglot Developer

Subscribe

Subscribe to the newsletter for monthly tips and tricks on subjects such as mobile, web, and game development.

The Polyglot Developer

Support This Site