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 - Electronics Functional Test - Blog 9
  • 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: 30 May 2019 11:19 PM Date Created
  • Views 682 views
  • Likes 6 likes
  • Comments 3 comments
  • image processing
  • doug wong
  • picassotizer
  • picasso design challenge
  • digitizer
Related
Recommended

PiCassoTizer - Electronics Functional Test - Blog 9

dougw
dougw
30 May 2019

I t has been very disappointing that the cameras I ordered have not arrived. However I need to at least find out if the system works before tomorrow's deadline, so I have hooked up some ancient webcams to see it the whole system works.

These webcams have the wrong field of view and are both different and they have significantly different sensitivities, so these tests will not be using the final geometry. I just want to see if a drawing program can be controlled by webcams detecting a pointer.

For the first test I just had the webcams off to the side to see if waving a pointer in front of them would make the paint program cursor move, and it does. That was a nice moment.

image

You can see in this picture that there are 3 Raspberry Pi computers. They are all 3B+ versions even though the cases are all different.

The three mice on the right are for the 3 Pi's. The other mouse and its adjacent keyboard are for a PC which is used for arduino development and can display on both monitors.

The monitor on the right has 3 selectable inputs:

  • PC
  • RPi B
  • RPi C

The monitor on the left has 2 selectable inputs:

  • PC
  • RPi A

The two other keyboards are connected to RPi A and RPi B.

The arduino is connected to RPi C via USB and acts as a HID mouse.

It is also connected to 2 DACs, being fed camera positions by RPi A and RPi B.

The 2 webcams are connected to RPi A and RPi B.

If this all looks confusing, you should try developing software on 5 different computers at the same time - it is something else.

You have to think twice to even figure out which keyboard or mouse to use, assuming you can figure out which program needs to be altered and which monitor is displaying which computer output.

One keyboard is not even in the picture.

The power supplies are also pretty serious, especially when trying to do a properly controlled shutdown of all systems simultaneously.

I didn't really appreciate how confusing it would get when I was planning the project. Just scrounging enough cables, keyboards and mice was a bigger exercise than I expected. I had envisioned the two camera RPis as having no keyboard or mouse, just a camera. (completely ignoring the fact that the software would need troubleshooting and adjustment.)

However it was all just manageable and the entire system did function. Unfortunately, the cameras I had planned on didn't arrive, so the system is not seamlessly installed around a big display.

The test setup looked like this:

image

The camera frame is made from old hockey sticks and clamped in a vise. the cameras are mounted on the top corners of the frame and angled to see as much of the frame as possible. This frame is smaller than the final frame, but I didn't want to cut the final frame without measuring the final camera field of view, because I don't have enough material to make a mistake.

The camera views are showing in the upper left corner of each monitor. They can both see the pointer which was propped on the vise just to get it in the picture.

The cursor was jumping around quite a bit due to random reflective speckles in the image, so I attempted to put a black background in the area of interest:

image

This helped, but there is still more work to do to filter out noise.

It worked just well enough to understand that operating on a big screen allows finer control of drawing details than you can get using a finger on a small tablet.

The system is not quite stable enough to make a drawing yet without having the cursor jump unexpectedly, usually just before you are about to complete an action and release the mouse button.

On the positive side, the debounced mouse button on the pointer was a big success - it worked flawlessly.

 

The deadline is just hours away, but I will generate at least one more blog to summarize the project and all the lessons learned.

 

To answer a question from the comments below .... Here is a picture of the low-cost webcams I ordered - they are 4 cm x 3 cm x 2.5 cm:

image

 

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

PiCassoTizer - Electronics Functional Test - Blog 9

  • Sign in to reply

Top Comments

  • balearicdynamics
    balearicdynamics over 6 years ago +2
    Despite the difficulties, you have reached your goal. I admire the perseverance that last win. What kind of cameras have you ordered?
  • dougw
    dougw over 6 years ago in reply to balearicdynamics +2
    I added a picture of the webcams I ordered ... see above... I liked the size and the low price (< $4) Of course if they never arrive, it won't be a good price... but supposedly they are in the mail...…
  • dwinhold
    dwinhold over 6 years ago +2
    I really love following your project, I have learned a few things (well more then a few). Thank you!! Dale W
Parents
  • balearicdynamics
    balearicdynamics over 6 years ago

    Despite the difficulties, you have reached your goal. I admire the perseverance that last win.

     

    What kind of cameras have you ordered?

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dougw
    dougw over 6 years ago in reply to balearicdynamics

    I added a picture of the webcams I ordered ... see above... I liked the size and the low price (< $4)

    Of course if they never arrive, it won't be a good price... but supposedly they are in the mail....

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • dougw
    dougw over 6 years ago in reply to balearicdynamics

    I added a picture of the webcams I ordered ... see above... I liked the size and the low price (< $4)

    Of course if they never arrive, it won't be a good price... but supposedly they are in the mail....

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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