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.

While designing the module, I need to make sure the module can connect with the circuit board to perform data transfer. To do this, I need to work with JointJS. JointJS is a JavaScript diagramming toolkit for building fully interactive diagramming and modeling applications that run in modern browsers. This is another thing that I need to learn. Anyway, I was lucky enough as I can refer to the examples made by the previous interns. Once again, I was amazed by their hard work. The simulator was really well designed (including the modules).

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.


0 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.