element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
PiCasso Design Challenge
  • Challenges & Projects
  • Design Challenges
  • PiCasso Design Challenge
  • More
  • Cancel
PiCasso Design Challenge
Blog PiCassoTizer - The DAC - Blog 8
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: dougw
  • Date Created: 20 May 2019 4:41 AM Date Created
  • Views 573 views
  • Likes 8 likes
  • Comments 1 comment
  • doug wong
  • picassotizer
  • picasso design challenge
  • raspberry pi dac
  • python image processing
Related
Recommended

PiCassoTizer - The DAC - Blog 8

dougw
dougw
20 May 2019

The low cost DAC modules I ordered online have not arrived and it is getting late in the project, so I had to break down and buy some DACs locally at 10 times the price. Not a happy moment, but the show must go on. These I2C DACs have 12 bit resolution which is higher resolution than the cameras so they can easily handle the positional data. After fiddling around with I2C addressing and software libraries and writing some simple code, the DAC was happily outputting camera position.

Here is a little video showing the camera and DAC in action:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

You can see there is significant latency in the system, but it is pretty amazing what can be done with a few lines of Python code on a Raspberry Pi.

After importing libraries and initializing, the whole DAC algorithm is just one line of code.

The DAC is the final subsystem needed to make the PiCassoTizer work.

Already working are:

  • The camera digitization, image processing, finger recognition, angle determination and now DAC output corresponding to the finger position (one Raspberry Pi for each of 2 cameras)
  • Conversion of the finger position signals to X-Y mouse coordinates, generation of absolute USB mouse movement commands (using an arduino pro micro)
  • Creation of a pointer device with debounced mouse buttons (also handled by the arduino pro micro)
  • Host Raspberry Pi (the third Pi) with graphics software to accept external control

So far this has involved a bit of everything - sourcing and ordering parts, some electronic circuit design, some software design, some mechanical design, some mechanical fabrication, some electronic assembly, some programming, plenty of troubleshooting and debugging, lots of blogging and even some art.

Now all the technical bits and pieces have been proven to work - it represents a huge milestone achievement for the project.

There is still a ton of work left to integrate everything into a complete system, adjust everything so the scaling is correct, package the subsystems, use the system to do some art and then blog about it.

Hopefully the PiCassoTizer can be used to help make one or more of the upcoming blogs.

The right cameras still have not even arrived yet and a lot of scaling depends on their field of view.

I am going to have to work on the camera frame anyway - hopefully making the geometry flexible enough to accommodate what the cameras can see.

 

Relevant links:

PiCasso Design Challenge

 

PiCassoTizer - Introduction - blog 1

PiCassoTizer - Electronic Parts - Blog 2

PiCassoTizer - Finger Detection Image Processing - Blog 3

PiCassoTizer - Absolute Mouse Position - HID Simulation - Blog 4

PiCassoTizer - The Snowman Smiles - Blog 5

PiCassoTizer - Pi Expanse - blog 6

PiCassoTizer - The Wand - Blog 7

PiCassoTizer - The DAC - Blog 8

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

    Good update Douglas.

     

    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 © 2025 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