Embedded Computing
  • About
  • Blog
  • Hardware
    • Which Platform?
    • Controller Platforms >
      • Adafruit Platform
      • Arduino Plaform
      • BBC micro:bit
      • Espressif Platform
      • iLabs Platform
      • Raspberry Pi Platform (MCU)
      • Seeed Platform
      • Silicon Labs Platform
      • Teensy Plaform
    • Computer Platforms >
      • BeagleBone Platform
      • Raspberry Pi Platform (SBC)
      • UDOO Platform
    • Peripherals >
      • Shields
      • Grove System
      • Sensors
      • Actuators
    • Displays >
      • E-Paper Displays
      • Reflective Displays
      • TFT Displays
      • LCD Displays
    • Legacy Platforms >
      • chipKIT Plaform
      • 4D Systems Platform
      • Intel Platform
      • LaunchPad Plaform
      • BoosterPacks for LaunchPads
      • LightBlue Bean
      • Maple Plaform
      • Mediatek Platform
      • Microsoft Azure IoT DevKit
      • Particle Platform
  • Software
    • Exploring RTOS with Galaxia >
      • Event Library
      • Semaphore Library
      • Mailbox Library
      • Timer Library
      • Clock Library
      • SWI Library
      • Task Library
    • Ultra-Low Power with EnergyTrace >
      • Ultra-Low Power with MSP430
      • Ultra-Low Power with Energia MT and Galaxia
    • Using Integers Instead of Reals
    • Going Python?
  • IoT
    • IoT Platforms: Which Hardware? >
      • Matter with Silicon Labs MG24
    • IoT Services: Which Solution? >
      • Recommended IoT Solutions
      • Platform-Specific IoT Solutions
      • Other IoT Solutions
      • Not tested IoT Solutions
      • Notification Solutions
    • Get Date and Time from Internet with NTP
    • Fast and Easy WiFi Connection with QR-Code
  • Tools
    • How to Start?
    • Reference >
      • Asking for Help
      • Boards Pins Maps
      • Ruler
      • Boards and Plugs
      • I²C Logic Level Converter
      • Standards for Connectors
    • Training >
      • Texas Instruments Workshops
      • Embedded Systems: Shape The World — MOOC edX UTAustinX UT.6.02x
      • Embedded Systems - Shape The World: Microcontroller Input/Output — MOOC edX UTAustinX UT.6.10x
      • Embedded Systems - Shape The World: Multi-Threaded Interfacing — MOOC edX UTAustinX UT.6.20x
      • Real-Time Bluetooth Networks: Shape the World — MOOC edX UTAustinX UT.RTBN.12.01x
      • Systems Thinking with Texas Instruments Robotics System Learning Kit
    • Books >
      • Getting Started with the MSP430 LaunchPad
      • Getting Started with Arduino
      • Arduino Cookbook
    • IDE >
      • The Battle of IDEs
      • More Options
      • Assessing the Next Generation of IDEs
      • Tools for Documentation
    • Equipment >
      • Saleae Logic Analyser
      • Rigol DS1102E Oscilloscope
      • XDS110 Debug Probe with EnergyTrace​
      • Segger J-Link Programmer-Debugger
      • Nordic Power Profiler Kit II
  • Projects
    • Libraries >
      • Master I²C Software Library
      • Date and Time Library
      • highView Library Suite
      • Others Libraries
    • smartDevices >
      • I²C smartColours Smart Sensor
      • I²C smartRFID Smart Sensor
      • I²C smartLED Display
      • I²C smartControls Smart Device
      • I²C smartWiFi Smart Device
      • I²C smartBLE Smart Device
      • I²C smartNode Smart Device
    • IoT Projects >
      • Remote E-Paper Weather and Message Board
      • Typie-Walkie with LoRa and E-Paper Screen
      • Typie-Walkie with E-Paper Screen
      • Remote e-Paper Pictures Panel
      • Remote e-Paper Messages Panel
      • Industrial IoT Project
      • Remote Contactless Temperature Monitor
      • Using Node-RED for IIoT
      • Low Power Home Network Weather Monitoring
      • Updated Low Power Home Network Weather Monitoring
      • Weather and Security Station with Blynk
      • SensorTag to Blynk Using Node-RED
      • Pervasive Reporting
    • AI Projects >
      • Colour Recognition with Neural Network
    • Other Projects >
      • Air Quality Monitoring
      • Driving a Large E-Paper Display with a Compact Xiao RP2040
      • Low-Power E-Paper Weather Station
      • Portable Particulate​ Matter Monitor
      • FRAM-based E-Paper Screen Controller
      • General Purpose 3.5" Screen
      • Colour Recognition with Neural Network
      • A Low Power Weather Station
      • Digital Volt-Amp-Watt Meter
      • Mobile Measurement with LCD Display
      • Screen with SRAM for GUI
      • Volt-Amp-Watt-Meter for Grove
      • Multi-Touch Project with CapTIvate

I²C smartColours Smart Sensor

This project is shared with the fischertechnik Corner website, as the first smart sensor is intended for the fischertechnik Robo TX controller.

This part in more technical oriented.

The first smart sensor I'm working on is a colour recognition sensor, called smartColours.

Based on the functional specifications, the main choices are about the sensor and the MCU. The sensor should have at least 3 channels, red-green-blue, and optionally a forth one, clear.

Needless to say, the sensor should be as compact as possible. A first iteration almost used a whole 26x18 base plate. The target is to fit everything into the 6 x 3 cm red box.

The MCU should provide an I²C slave since the connection is through I²C bus. The sensor couldn't be on the same I²C bus, in order to prevent any collusion, and should deliver one voltage or frequency per channel, with some settings for sensitivity. 

Because I'm a hobbyist, I'd prefer to deal with DIP packages rather than SOIC or, even worse, SSOP. The MCU should have as few pins as possible.

Finally, the whole firmware of the sensor is going to be developed in C++. This requires using a Processing-based Wiring-derived IDE and, even better, one supported by embedXcode so I could use Xcode for the development.
Picture

Selecting the Sensor and MCU

After an extensive research, I came with two short-lists, one for colour sensors and the other for MCUs.

Finally, I'm considering an affordable 4 channel colour sensor and a MSP430 MCU. As both operate at 3.3V, an additional regulator and logic level converter are required. 

The colour sensor meets the sensitivity requirements. The MCU comes in DIP package and can be programmed with embedXcode. 

As an additional but critical benefit, specific sheets are well written, clear and understandable.
Picture

I²C Commands

Based on the functional specifications and after extensive tests on a prototype based on an Arduino board, I defined three sets of commands: 
  • standard usage, 
  • first time usage with calibration,
  • and optional usage.

Learn more about the commands.

Building the Prototype

The prototype was built in three steps.

In the first step, only the sensor and the I²C logic level converter are on the prototype board.

The MCU with the power unit, the uploader and the debugger are on its native board.
Photo
In the second step, the MCU has migrated to the prototype board.

The MCU board still provides the power unit, the uploader and the debugger.
Photo
On this third and last step, all the components are in the prototype board. 

A smaller one has been added for the power unit and the reset circuit.

The tests proved successful. Next step is the integration into a fischertechnik 9 cm x 3 cm box!
Photo

Finalised and Working Sensor

The sensor is finalised, integrated into a standard fischertechnik 9 V battery box and working!

Extensive testing was performed during the Hannover Maker Faire held August 3rd, 2013. The smartColours sensor ran continuously during 10 hours, identified 600 cylinders and failed to recognise the right colour 8 times only. 

With a successful rate of 98,7%, the smartColours sensor is thus highly reliable.
Photo
Powered by Create your own unique website with customizable templates.