Mónica Pedro

Input Devices

Back to main page

Image

I need to use image as input data for my machines, and to start understand how it works, I will use an olde Raspberrypi 3 model B V1.2 that I already have

RASPBERRY PI 3 MODEL B because this board seams to have lots of examples online for camera's

Raspberry SetUp

Started to create an working set with:

Raspian usefull Commands:

  • chech Raspbian OS version: cat etc/os-release
  • find files: find / -name xxxxxxname.extensionOfFileToSearchxxxxxx
  • Pi's IP Address: hostname -I
  • Raspian Remote Access using VNC - Virtual Network Computing

    VNC (VIRTUAL NETWORK COMPUTING)

    important steps:

    1. ON Raspbian: sudo apt-get update
    2. ON Raspbian: sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer
    3. ON Raspbian(to activate Interface Option\VNC\Yes: sudo raspi-config
    4. ON Raspbian: hostname -I
    5. ON my MAC: call the VNC
    6. ON my MAC\VNC window: establish new connection withe Pi's IP
    7. ... and I can interact with Raspberry OS

    Raspbian Hedless

    to be able to program from my Mac....

    VNC Server can create a virtual desktop, to provide me graphical remote access on demand. This virtual desktop exists only RaspberryPi's memory

    1. ON Raspbian run vncserver and note the IP address
    2. ON my MAC\VNC.app\create new connection: using the Pi's IP address

    Camera on the Raspberry

    USB Blue CAM

    I found this camera on the lab and decided to try it

    for that I created a sccript on Raspbian terminal


    USB CAM does not work anymore

    I'd tried to use the FSWEBCAM command but got the error: stat: No such file or directory

    looked online and tried: sudo modprobe bcm2835-v4l2... rumed and them fswebcam image.jog and got the same Error: stat !!!!

    But... It was just UNPLUGED.... oHHHHH God

    OpenCV on raspbian - for Edge detection

    Fallowed the indications on Think RPI ~ Creative Raspberry Pi Area - Step 3 – Install softwares (for webcam and computer vision)

    so I'd made the following in Console:

    So changed the strategy and found a new possible path using Python

    Edge Detection and OpenCv

    but got some error's which seams to be related to Python Version and/or Raspbian Versio

    I've installed on my R3 the Raspbian 9 named strech

    I've installed the Python 3

    ... but the that code was written in Python2 grrrrrr!!!!!!

    ... so I'd to runn the code from the comand line: sudo python2.7 edge.py and it passes without any erros... IEE!!!!!

    ... but the windows doesn't show !!!!!

    So lets back studing OpenCV fallowing this example: Adding a Trackbar to our applications!

    I'll write the code using the Rasbpian Python 3 (IDE), but running the code from the comand Line with the comand sudo python2.7 NAMEANDEXTENSIONOFPYTHONFILE

    it runned without erros... but now window apeared...


    (-).(o)

    _____________________________________________________________________

    Python basics...

    How to make a window with buttons in python

    Python basics:

    Sensors connected to MYBOARD 01

    I'll need to mey Final project these sensors:

    Instructables on those sensors...

    Previews Students works for inspiration

    Leire Bereziartua - Input Devices where he uses a Moisture sensor

    Suhail - Input Devices where she uses a temperature + humidty + Infrared

    and to start playing with it through a ARduino UNO

    the things I have in my home lab where:

    DHT11 connected to Freduino UNO

    Practicing the Milling of boards

    Milling at Carvey machine from Inventables

    Carvey 3D carving machine - User Manual

    ......... preparing the files..... passes by

    FlatCam - to prototype the PCB

    FlatCAM: Free and Open-source PCB CAM

    setps:

    1. after extracting all the files from Zip file made in Eagle , select the file (EAGLE layer) that will be sent to Milling
    2. in tab OPTIONS:
    3. ... PROJECT OPTIONS - define mm
    4. ... APPLICATION DEFAULTS - define mm
    5. if not doing the above FLatcam wil become strange
    6. having selected that layer in PROJECT tab goto Tab SELECTED and set
    7. .... Tool dia: 0.3
    8. .... Width (#passes): 3
    9. .... Pass overlap: 0.15000
    10. .... and GENERATE GEOMETRY
    11. back to PROJECT tab - select the new item _iso and goto tab SELECTED to set:
    12. .... Cut size: -0.6
    13. .... Travel Z: 2
    14. .... Feed Rate: 200.0
    15. .... Tool dia: 0.3
    16. .... Spindle-Depth: 14000
    17. .... and GENERATE
    18. select the new item in PROJECTS tb _cnc and go to tab SELECT to set:
    19. .... EXPORT GCODE, which will be file to Drag to Chilipeppr...

    Chilipeppr

    ChiliPeppr Hardware Fiddle

    this is the program interfacing with the machine @ FCTFABLAB (Carvey from Inventables)

    Steps

    1. drag the Gcode File (made through Flatcam)
    2. go out to windows file explorer window to connect the Serial port
    3. came back to Chilipepper
    4. Set the starting coordinates of the milling
    5. --using X, Y and Z buttons on left, move the mill head to the X,Y and X of Copper Board
    6. --when the light indicator on Milling machine is up...
    7. Set the Zero out and reset all: refres Chilipepper page, disconnect USB port on PC, and Electricity of Carbvey machine... them turn on PC-USB, Machine and refresh Chilipepper Page
    8. Test that the Zero is ok by: Lift up Z a lot
    9. click Go to Zero with close ATENTION to verify that it's realy going to the right position....
    10. .... if NOT - Quickly STOP the machine by removing the magnet on the door.. and resart all the positioning
    11. run AUTO-LEVEL that will map all the Z's of the board
    12. .... we can adjust the routing steps of auto-level
    13. once terminated the Auto-level,
    14. RUN by clicking the button RUN, and here's it workong...

    ----------------------

    after 4 tries... its not done... ERRRRRRRR

    And after soldering with lots of care... here it is...

    Preparation

    XXXXXXXXxxx x x x x xxxxxx x x x x x x x x x:


    Execution

    Started by ..............................