Mod edit:
This topic is a continuation of I2C freezes when more sensors are interfaced with arduino
I decided not to merge them as I thought it would be clearer just to provide links between them. Other topic closed as the OP is now looking to pay for help.
Hello everyone!
I hope you are in good health.
I am working on a project where I have to interface 4096 capacitive sensors with the Arduino. I have made the circuitry part of this and written code as well. I need your expertise in fine tunning the code further. If anyone is willing i can share the details and we can fix the amount as well.
Thank you.
We can do it with the help of multiplexers as row and column. It is not impossible, though. I am right there and need a bit of help with the coding part. Arduino has a memory constraint, and I can shift to esp32.
Sorry, if the description is not enough. I have everything in my mind what I need to do. Almost I am on the finishing line. Somehow I feel I am not at expert in writing programs better.
Oka. Let's be more descriptive.
I have a capacitive sensing matrix in 6464 ( 4096 sensors). I have placed these sensors in 64 columns and 64 rows (128 lines total). The 64 rows are controlled by two 32:1 muxs and the output of these mux goes into 2:1 mux. Similarly, another 64 columns are controlled by two 32:1 mux, and the output of these mux goes into a 2:1 mux. The output of both of these 2:1 mux goes into the Capacitive to digital converter chip, that communicates with arduino using i2c communication protocol. I have developed the code for 3232 and it works well. I need to move to 64*64 now. I have written code for this as well. I need help in two things:
Suggestions that should I use esp32 now (more memory needed)
Fine tunning the already developed code.
I hope it is enough. Please let me know if you need more information.
The code is running. But it needs to be more efficient and changes whatsoever required. That is my whole point. see I am not expert in writing programs so, I need the confidence of some expert here.
You're missing the point. The topic is so secret you can't share code or schematic, yet you're asking for help on an open forum. Presumably, then, you have an NDA ready for someone to sign when they've stepped up. No one's going to give you a price before they've seen the schematic (your code probably doesn't matter, it'll be kleenex), because so much depends on what, if anything, is already wired, how the sensors are configured, and whether the wiring even makes sense.
Based on the requirement in the other thread for more pins than the ESP32 in
My 2c is to use your perfectly running 16x16 code in an Arduino with more memory to run your 32x32 code that would require 4K. An Arduino Mega has 8K. An arduino Giga has Arduino GIGA R1 WiFi — Arduino Online Shop has 1MB.
But moving up to a 64x64 array of 4-byte floats will require 16k of RAM, knocking the Mega out of contention.
Maybe your secret already written program will drop right into an Arduino Giga and run your 64x64 case with minimal tuning.