element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Ultimate RoadTest
  • Challenges & Projects
  • Design Challenges
  • Ultimate RoadTest
  • More
  • Cancel
Ultimate RoadTest
Blog Project "code name" Part 028
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: COMPACT
  • Date Created: 25 Jun 2012 10:42 PM Date Created
  • Views 601 views
  • Likes 1 like
  • Comments 1 comment
  • ultimate_roadtest
Related
Recommended

Project "code name" Part 028

COMPACT
COMPACT
25 Jun 2012
June 25th

Functional Test Details

The General Approach

I'm taking and incremental integration approach to getting this project up and working.
I'm adding elements one at a time as I'm getting them to work.

This leaves me with a trail of working configurations allowing me to regress back to a previous configuration if something should go wrong.

The first element working is the Nokia LCD Screen.
This was followed by the all the digital controls for the toy.

For the moment the audio analog interface as been disconnected because I will have to find room to squeeze the code into the current memory foot print.

To conserve memory, the LCD font definition table only contains upper case characters and some commonly used symbols.
Lower case characters are displayed in upper case and unsupported characters are replaced with a blanks.

 

Wi-Fi Software Integration approach

Rather than starting from scratch I have leveraged CC3000 wifi basic application and modified it to work as required.
Some portions that are interactively set using a serial terminal have been changed. This includes
     IP Configuration - This now configured as a part of the initialisation process.
     Open socket - This has been configured as a part of the initialisation process.
     Bind to port - This has been configured as a part of the initialisation process.
     Recv data - This is now a part of the main application loop in main().

 

For the moment, I have retained the use of port UDP5100 for simplicity.

When data is received, the payload is parsed and processed.
I've used a simplistic format where the first byte is the command byte followed by a parameter list.
I've kept the commands and data to use ASCII characters for the moment to make them easily used.

 

Current Command Table

H<x> - Headlights Control
     L  Light
     U  Unlight

 

S<x> - Suspension Control
     A  Activate
     D  Deactivate

 

N<x> - Neck Control
     U     Up
     D     Down

 

M<x> - Mouth Control
     O     Open
     C     Close

 

P - Power Button Control
        Emulate Press Power button

 

E<x><y><text> - Display on LCD
     x     (0 through 13) + '0'
     y     (0 through 5) + '0'
     text  text to be displayed

 

No handshaking with the requestor is being performed at this moment.
It is working under the assumption that all commands are received and completed successfully.
Full support for handshaking will be added later as this is required for reliability and safety.

 

Animating the toy is simple.

At this stage this needs to be done by the remote application

All one has to do is send down the commands in the desired sequence in real time.

The toy will respond accordingly.

For the functional tests I used UDP Test Tool 3.0.

All I had to do was

     Select the target IP address     192.168.1.2

     Selected the target UDP port     51000

     Input the data to be sent (Commands)

     Click the Send button to send.

 

The first video is just a test of the P Power Button Control Command.

This is equivalent of momentarily pressing the yellow power button.

The toy turns on and plays the sequence stored in its embedded controller.

 

The second is a a test of the other working functions.

This time the toy remains inactive and we control the toy's functions via the commands via Wi-FI.

 

HL     HeadLights Light

HU     HeadLighs Unlight

NU     Neck Up

MO     Mouth Open

MC     Mouth Close

ND     Neck Down

SA     Suspension Activate

SD     Suspension Deactivate

MO     Mouth Open (To show that mouth can open independently of Neck position)

 

The third video is a test of the LCD display function.

E43HELLO

E44THERE

 

 

 

  • Sign in to reply
  • DAB
    DAB over 13 years ago

    Good detailed update.

     

    I agree that you can get by with just sending the commands as long as you can verify their implementation without repeating the commands.

    Also building upon the existing code is a good place to start.  It helps eliminate unknowns.

     

    Good luck,

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube