Things used in this project

Hardware components:
Adafruit SSD1306 OLED
×1
Wifi Antenna 9dBi
×1
Wifi Antenna 7dBi
×1
Wifi Antenna 5dBi
×1
UDOO NEO
×1
Hand tools and fabrication machines:
09507 01
Soldering iron (generic)

Schematics

UDOO Neo with OLED display shield
This shows the jumper wires required to allow access to the i2c bus
Img 20160225 001221

Code

Python wifi scanner with OLED display for UDOO NEOPython
Install dependency libraries and launch from rc.local on reboot to keep scanning
#!/usr/bin/env python

# Ported from:
# https://github.com/adafruit/Adafruit_Python_SSD1306/blob/master/examples/shapes.py
# Also includes wifi scanning

from oled.device import ssd1306, sh1106
from oled.render import canvas
from PIL import ImageFont
import commands
import re

font = ImageFont.load_default()
device = ssd1306(port=1, address=0x3C)


if __name__=="__main__":
    scan_result = commands.getoutput("sudo /sbin/iw dev wlan0 scan")
    ssids = [x.group(0)[6:] for x in re.finditer("SSID:.*\n",scan_result)]
    signals = [x.group(0).lstrip("signal: ").rstrip(" dBm\n") for x in re.finditer("signal:.*\n",scan_result)]
    print ssids,signals
    with canvas(device) as draw:
        # Load default font.
        font = ImageFont.load_default()

        # Alternatively load a TTF font.
        # Some other nice fonts to try: http://www.dafont.com/bitmap.php
        # font = ImageFont.truetype('Minecraftia.ttf', 8)

        # Write all SSID's in brief
        y = 0
        for ssid,signal in zip(ssids,signals):
            draw.text((0, y), ssid[:10],  font=font, fill=255)
            draw.text((84, y), signal, font=font, fill=255)
            y += 10

Credits

Zzz9vazdikhrd36ppk08
Tisham Dhar

I am an Electronics Engineer who mostly works with aerial and space based remote sensing projects. I fiddle with home automation and renewable energy projects.

Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Offline Speech Processing
Intermediate
  • 2,241
  • 17

Protip

Create your very own hotwords like "Alexa," "Ok Google" and "Hey Cortana," and trigger events just by speaking... without the Internet.

A powerful Maritime Instrument & Display Controller
Intermediate
  • 9,666
  • 55

Work in progress

A powerful Maritime Instrument & Display Controller, based on UDOO Neo, acting as a navigator, chart plotter, wireless NMEA multiplexer & ?

UDOO Ubuntu LTS Guide
Intermediate
  • 1,147
  • 23

Full instructions

Building a Ubuntu LTS configuration for the UDOO Quad

myva-Home (Voice controlled home automation)
Intermediate
  • 3,733
  • 40

Full instructions

My Voice Activated/Controlled Home, Using the Linkit Smart and an Android with easy to use examples and libraries

UDOO Neo Automated Hematoogy Laboratory Tubes Unscramble
Intermediate
  • 1,343
  • 11

Full instructions

A device that reads a bar code placed on the tube and, based on it, moving two step motors to place the tube in the correct position.

Home Energy Monitor
Intermediate
  • 2,303
  • 12

A low cost, high performance energy meter for my home.

Add projectSign up / Login