How ieee-sb-uniwa/lidar-cane works
Purpose and Scope
Kana Fotilo is an IEEE UNIWA assistive smart cane intended to help users with limited vision navigate autonomously. Its intended loop is environmental sensing, obstacle analysis, safe-direction selection, physical cane steering, and audible feedback. The repository primarily contains a Raspberry Pi prototype, a small educational sensor example, mechanical assets, and a deprecated simulator.
Primary Hardware Runtime
The active implementation appears to be the Raspberry Pi communication/control script at raspberry pi/comms.py. This is the likely device-side entry point coordinating attached sensors and actuators. The target hardware includes ranging sensors (ultrasound/LIDAR/ToF), a servo, buzzer/speaker, and planned IMU/GPS integration.
Perception and Obstacle Data
The design scans the surrounding area by sectors, storing distance readings in an array for subsequent analysis. An educational ultrasonic-sensing implementation is present at educational/ultrasound.py; it likely serves as an isolated prototype/reference for the ranging stage rather than the complete application. Sensor readings form the boundary between physical-world inputs and navigation decisions.
Guidance and User Feedback
After interpreting scan data, the system chooses a safe direction when an obstacle is detected. That decision should drive:
• Servo output: mechanically points/steers the cane toward a selected course.
• Buzzer/speaker output: warns or guides the user audibly.
These actuator responsibilities are expected to converge in raspberry pi/comms.py, keeping hardware-specific I/O separate from sensor interpretation and direction-selection policy.
Navigation Extension Boundary
The README identifies IMU and GPS for outdoor guidance and an application that configures destinations through OpenStreetMap API. No corresponding application, mapping client, or GPS/IMU implementation is present in the tree. Treat external routing/mapping as planned integration rather than an implemented runtime dependency.
Simulation and Validation Prototype
simulator_deprecated/ is an explicitly deprecated Godot/.NET 3D simulation project, not the current production path. Its simulator entry scene and orchestration are represented by:
• simulator_deprecated/project.godot
• simulator_deprecated/main.tscn
• simulator_deprecated/main.gd
Raycasting and obstacle-world behavior are modeled in simulator_deprecated/RayCast3d.cs, simulator_deprecated/ray_cast_3d.gd, and simulator_deprecated/boxes.gd. It provides historical validation of sensing/navigation concepts but should not be coupled to Raspberry Pi deployment.
Physical and Presentation Assets
The cane’s mechanical model is available as assets/kane.stl, with a Blender source model at new_cane.blend. Project communication artifacts are separate from runtime code, notably presentations/index.html and presentations/ieee day presentation.pptx.
Main entry points: comms.py Device controller · main.tscn Simulator main scene · main.gd Simulator orchestration · RayCast3d.cs Raycast sensing
Components 18
Raspberry Pi Runtime
Active smart-cane control path.
- Device controller · Coordinates scanning, guidance, and hardware outputs.
raspberry pi/comms.py - Ranging sensors · Ultrasound, LIDAR, or ToF distance sources.
- Sector scan data · Sector readings retained for obstacle analysis.
- Obstacle analysis
- Safe direction
- Servo steering · Physically points the cane toward the selected course.
- Buzzer / speaker · Delivers obstacle warnings and guidance.
- Ultrasonic example · Isolated reference implementation for ranging.
educational/ultrasound.py - IMU / GPS · Planned outdoor-positioning integration.
- Mapping & destinations · Future application and OpenStreetMap routing boundary.
Deprecated Simulator
Historical Godot validation prototype.
- Godot project config
simulator_deprecated/project.godot - Simulator main scene
simulator_deprecated/main.tscn - Simulator orchestration
simulator_deprecated/main.gd - Raycast sensing · Models obstacle-distance sensing.
simulator_deprecated/RayCast3d.cs - Obstacle world
simulator_deprecated/boxes.gd
Physical & Project Assets
- Cane mechanical model
assets/kane.stl - Cane source model
new_cane.blend - Project presentation
presentations/index.html
Connections 15
- Ranging sensors → Device controller: reads
- Device controller → Sector scan data: stores sectors
- Sector scan data → Obstacle analysis: analyzes
- Obstacle analysis → Safe direction: selects
- Safe direction → Device controller: returns course
- Device controller → Servo steering: drives
- Device controller → Buzzer / speaker: signals
- Ultrasonic example → Ranging sensors: references
- IMU / GPS → Mapping & destinations: future position input
- Mapping & destinations → Safe direction: future destination guidance
- Godot project config → Simulator main scene: loads
- Simulator main scene → Simulator orchestration: runs
- Simulator orchestration → Raycast sensing: uses
- Obstacle world → Raycast sensing: intersects
- Cane source model → Cane mechanical model: source for