Spurkfun Edge and Camera

My Arduino settings and code to use Sparkfun Edge with the camera module.

Hardware

  • Sparkfun Edge (Input only 3.3V.)
  • Himax CMOS Imaging Camera – HM01B0
  • Wemos CH340G USB to serial (Make sure it output is 3.3V!)
Spurkfun Edge

In Arduino IDE

  • Add Boards Manager URL: https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json
  • Install SparkFun Apollo3 Boards package
  • Install SparkFun Himax HM01B0 Cameras library

Settings

Arduino settings

Upload sketch

  • Press and hold the Reset button
  • Press and hold the 14 button
  • Release the Reset button
  • Hold the 14 button and hit Upload in the Arduino IDE

If it is successful you will see this message:

Read images

Board default Serial Baudrate is 460800.

Example Python code is utils/StopMotion.py.

Run this to save images on same directory:

./StopMotion.py -p /dev/ttyUSB0 -o .

First you see something this. When I first tried this it was all I get. Only these numbers forever. Then on the next day I came back, hooked it up and miraculous it started to work.

Positive output

Example image (bmp):

Links

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.