Made setup using laser cut levels:

  • walls with 6mm MDF
  • 3mm MDF for top layer, with hole for sensor
  • Skin layer by using 3mm MDF and attaching silicone

First time around, I used a Raspberry Pi 3B+ with camera module V2. This to see the quality of footage. Used a marker to draw a red dot on the skin layer. Made sample code to calibrate and focus camera. 

Want to add a light source later, maybe also switch top for plexi to allow more light to reach dot. Then started with code to trace the movement of the dot. The last image uses an iPhone camera lighting from the side.

To do:

  • Make python code for tracking. (Can be done by postprocessing)
  • Want to make the top movable so that the camera can move rather than the surface. Can change to surface if that works better.


RaspberryPi test code for camera module
from picamera import PiCamera
from time import sleep

camera = PiCamera()

Camera.strart_preview()

#Test for video, later removed for images. It was tried because the location was unclear.
try:
	camera.start_recording("/home/karolineaune/Desktop/video.h264")
	sleep(5)
	camera.stop_recording()
	camera.stop_preview()
except:
	sleep(5)
	print("It did not work")
	camera.stop_preview()

camera.capture("./focusingX.jpg") #Switched X for which iteration it was. First iterations are not captured with camera.



  • No labels