Transfer lookup table via USB for use by multiple Arduinos


hi all. first post *waves* sorry long post - figure it's easier if go detail straight up.

i'm working on project i'm struggling , hoping knows more able give me bit of insight. i'm new arduino , it's possible i'm biting off more can chew i'm hoping if can break down small enough parts it'll work. i've given myself 6 months work first couple of stages out there's plenty of time learn.

so i'm trying create sensor simulator number of different sensors. these sensors monitor either analog voltages or frequencies etc , based on values lookup table, output different voltages etc. example, 1 of these has dc 0-5v input should output 3 different analog voltages out (think mirrored potentiometer more complicated.) each sensor there should lookup table, eg x input voltage, output 1 should have y volts output, output 2 should have z volts output etc. rather having 1 arduino doing want spread out between number of arduino units of sensors output complex waveform @ frequency processing speed of arduino becomes issue.

the catch sensor "profiles" need changeable , selectable via pc. idea master lookup table (i'm thinking .csv) containing selected profiles sensors transferred via usb master arduino unit usb input , stored either on or (preferably) on sd card or other external memory (sd better it's non-volatile). once complete, each of secondary arduino units copies section of master lookup table (i'm thinking via i2c) own internal memory own lookup table, @ time master arduino becomes obsolete (or gets re-purposed, whatever - it's not important) data on sd card - @ time, secondary arduino units working independently of each other. figure easier solution there's no confusion multiple access memory.

although i'm planning one-way communication via usb (transfer lookup table , that's it) avoid having activity on usb once has done initial transfer of lookup table (ie no streaming pc) further down line i'd data display on pc.

which brings me questions. firstly, idea seem feasible? i'm worried i'm overlooking fundamental issue that's going bite me on butt , render whole project next impossible.

secondly (and reason why asked in section of forum) 1 of main things i'm having difficulty finding out best method transferring lookup table (either master arduino or external memory eg sd card). haven't been able find examples suit i'm trying do. there needs pc side, , either arduino side or otherwise way write directly via usb sd card. i'm not sure here. i've seen examples using python (a language admittedly don't know about) seem streaming lookup data pc rather having stored on-board.

thoughts? suggestions? appreciated.

could write files sd card on pc , transfer arduino?

you write pc program can send data arduino file on pc. if arduino connected pc simplest thing. use python , python - arduino demo may of interest. can ame thing in pc programming language.

i'm afraid don't understand description of project.

how data (how many bytes) there in 1 of tables? uno has 2k of sram if table large , of needs available arduino sd card may option.

...r


Arduino Forum > Using Arduino > Interfacing w/ Software on the Computer > Transfer lookup table via USB for use by multiple Arduinos


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor