Adding Modules to the Simulator
Last week I have understand the whole project system, so starting from this week I will begin to start my task — Implementing IO modules into the simulator.
Dr Shawn advised me to start with the easiest modules, which is the sensor modules. Sensor modules are easier comparing to other modules as their functions are just detecting events or changes in real world, then provide a corresponding output to the device.
I started my task with Digital Touch Sensor TTP 223. This sensor module consist of 3 pins, which are OUT, VCC and GND. to insert this module into the simulator, I need to find or design a simple svg (Scalable Vector Graphics) for it. Since I couldn’t find any svg on internet, I have to design a temporary svg for it.
Besides Digital Touch Sensors, I also added two more sensors: Ultrasonic sensor and PIR motion sensor. Ultrasonic sensor has 4 pins: VCC, Trigger, Echo and GND. PIR motion sensor is very similar with Digital Touch sensor as they have the same pins.
In overall, I spent most of the time studying JointJs and modifying the sensor modules to fit in to the simulator. Next week I am going to start with SPI module.