Hello everyone, I am carrying out a science project using 2 Multiplexers TI-CD74HC4067 and velostat linqstat.
The goal of this project is to eventually be able to create a foot pressure sensor in order to be able to study the areas of the carpet under stress when a patient walks on the carpet.
So, I realized a «homemade» sensor using Velostat linqstat and copper tape. So I made two «plates», one realizing the vertical axes of my matrix and the other the horizontal axes. I then welded Arduino wires out of each of my ribbons and started cabling my multiplexers and my Arduino UNO board.
This is when I encounter a problem when realizing my code. Indeed, not being an expert in Arduino, I have a lot of difficulty to realize the code. I would like to be able to refer to a screen (the one on my computer for example), a kind of table whose boxes would be more or less greyed out depending on the effort applied at a point on the carpet but I really do not see how to do it.
I started by trying to make an Arduino code to read the values of the sensor I attach below :
Images of code are nearly worthless. We cannot copy the code to a text editor or the IDE for examination and/or verification. Please post the code properly. Read the forum guidelines to see how to properly post code and some good information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Honestly, I’m not good at Arduino at all. So I tried to start a code in order to exploit the values of my multiplexers but beyond that I don’t know how to go further. I know that a priori the values of my two multiplexers can be exploited according to the code I enter in binary (as indicated in the multiplexer documentation) but I do not see at all (and do not really know) how to code everything.
I would first like to be able to scan the different points of crossing between the vertical and horizontal matrix in order to obtain the resistance values of my velostat in localized points if I apply an effort on the carpet.
Unfortunately, I have no idea how to make a code to accomplish this task.