Embedded Computing
  • About
  • Blog
  • Hardware
    • Which Platform?
    • Controller Platforms >
      • Adafruit Platform
      • Arduino Plaform
      • BBC micro:bit
      • Espressif Platform >
        • ESP32-DevKitM-2 Board
      • LaunchPad Plaform
      • Microsoft Azure IoT DevKit
      • Raspberry Pi Platform
      • Seeeduino Platform
      • Teensy Plaform
    • Computer Platforms >
      • BeagleBone Platform
      • Mediatek Platform
      • UDOO Platform
    • Peripherals >
      • BoosterPacks for LaunchPads
      • Shields
      • Grove System
      • Sensors
      • Actuators
    • Displays >
      • E-Paper Displays
      • Reflective Displays
      • TFT Displays
      • LCD Displays
    • Legacy Platforms >
      • chipKIT Plaform >
        • chipKIT Uno32 and uC32
        • chipKIT WF32 and WiFire
        • Compatibility
        • chipKIT PGM Programmer-Debugger
        • 4D Systems PICadillo-35T
        • Shields for chipKIT Uno32
        • 4D Systems Platform >
          • 4D Systems PICadillo-35T
          • 4D Systems gen4-IoD-28T
      • Cosa, an Alternative Framework for AVR Boards
      • DFRobot Platform >
        • DFRobot BLuno
        • DFRobot Wido
      • Digistump Platform >
        • Digispark
        • Oak
      • Intel Platform >
        • Intel Curie with Neural Network
        • Intel Edison
      • LightBlue Bean
      • Little Robot Friends
      • Maple Plaform >
        • LeafLabs Maple
      • Microduino Plaform >
        • Microduino
      • Particle Platform >
        • Particle Core
        • Particle Photon
        • Particle Tools
      • Protostack Platform >
        • Protostack Boards
      • RedBear Platform >
        • RedBearLab CC3200
        • RedBearLab WiFi Mini
        • RedBear Duo
      • Wiring Plaform >
        • Wiring S
        • Wiring Play Shield
  • 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
  • IoT
    • IoT Platforms: Which Hardware?
    • 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 >
        • Arduino IDE 2.0
      • 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 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 >
      • 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

A Genie for Your Arduino Sketch

The last iteration of Workshop, the official IDE for 4D Systems screens brings an outstanding surprise:  ViSi-Genie.

ViSi-Genie provides a graphical environment to literally draw a user interface on the screen. 

Adding a button, a slider or more sophisticated GUI elements as a meter, a keyboard, and even a video-player, is done with just a drag-and-drop.
Picture
I built the interface shown on the right in just a  couple of minutes to control the brightness of a LED attached to a PWM pin.
Picture
Each element of the user interface is highly customisable, in shape, colour, font, size... through the object inspector.

Here, some of the properties for the yellow Quit button. 


Picture
Because the slider drives a PWM output, we need to define the minimum and maximum value for the slider and the meter. 

The corresponding MinValue and MaxValue properties are set accordingly.
Picture
Each element of the user interface is event-driven. 

Basic events are onChanging (continuous) and onChanged (when the touch is released). Actions are associated to events. In this example, 
  • when the slider is moved, the onChanging event is raised continously and the value sent to the meter;
  • when then slider is release, the onChanged event raised and the value is sent through a message to the Arduino.

What is really interesting here is the screen manages everything, even updating the elements displayed. No Arduino code is required to refresh the meter with the latest value set by the slider.
Picture
Similarly, the Quit button sends a message to the Arduino when pressed.
Picture
The built-in debugger allows to test the just designed interface and more importantly, record the messages sent from the screen to the Arduino.

Trackbar Change 16:18:03.673 [07 05 00 00 2F 2D] 
Trackbar Change 16:18:18.741 [07 05 00 00 64 66] 
Trackbar Change 16:18:19.584 [07 05 00 00 59 5B] 
Winbutton Change 16:18:22.980 [07 06 00 00 00 01] 

The structure of the messages sent by the screen is explained in the Reference Manual. Last byte is a check-sum to ensure the message consistency.

Each object is presented with an example on a dedicated Application Note. Two examples –one for Arduino and another for chipKIT– are supplied, with all the relevant code.

Picture
Connection to the Arduino board is done through a standard serial port at 9600 bauds.

One function read the messages from the screen and performs the check sum. The main loop executes the commands with the corresponding values.

SoftwareSerial mySerial(2, 3);

mySerial.begin(9600)
Download the Arduino sketch and the ViSi-Genie project.

Links to
  • 4D Systems website 
  • and Workshop 4 download.

mygenie.zip
File Size: 2 kb
File Type: zip
Download File

In conclusion, the new release of Workshop brings exciting features to 4D Systems screens and processional-looking interface to Arduino sketches, for free!


Pros

  • Drag-and-drop to build a professional-looking user interface
  • Easy and fast
  • Free update for 4D Systems screens
  • Plenty of documentation, application notes and examples

Cons

  • Windows only

Wrap-Up

  • Easy to use and really fast
  • Fully documented with reference manual, application notes and examples
  • Incredible value for 4D Systems screens


Powered by Create your own unique website with customizable templates.