Pagina1 van 1
Forum

Welkom bij de Tweaking4All gemeenschapsforums!
Voor je gaat deelnemen, bekijk de Forum Regels!

Specifieke onderwerpen: Start het onderwerp met de naam van het programma of systeem.
Bijvoorbeeld “MacOS X – Jouw vraag“, of bijvoorbeeld “MS Word – Jouw Tip of Truc“.

Merk op: Omschakelen naar een andere taal zal niet werken als je een post aan het lezen bent aangezien er waarschijnlijk geen vertaling beschikbaar is.



How do i import dat...
 
Deel:
Meldingen
Alles wissen

[Opgelost] How do i import data to arduino ide so i can turn on a motor.

2 Berichten
2 Gebruikers
0 Reactions
1,634 Bekeken
(@vincentsilas)
New Member
Deelgenomen: 5 jaar geleden
Berichten: 1
Topic starter  

Im using OpenCV for facial recognition and storing "ON/OFF" onto an excel file. Based on the value stored i need to turn on/off a motor. But i have no clue how to import the data to arduino. I've seen ways to export data from arduino to excel(using plx-daq) but not the other way around. I'm open to suggestions and other approaches to carry on.


   
BeantwoordenCiteren
 Hans
(@hans)
Famed Member Admin
Deelgenomen: 12 jaar geleden
Berichten: 2859
 

Hi Vicentsillas,

First off; you're in the Dutch forum, so most folks would expect you to speak in Dutch.
For those preferring English as their language, next time you may want to check out the English Arduino forum   
Anyhoo - most Dutch people can read English just fine, so I'll continue looking at your question right here.

First question that comes to mind is this: 
I'm assuming OpenCV runs on a PC or a Raspberry Pi and not on the Arduino itself?
If so, wouldn't it be easier to have the PC/RPi send an ON or OFF signal to the Arduino?

Aside from that question;
What does the data look like?
Are we looking at a code plus an ON of OFF state?
Does this list change often? Or is it a static list?
Where do you want the data to be stored? In memory? Or on an SD card?

Also: is it a lot of data? The Arduino has some memory limitations.

If the list is something "simple" formatted like for example:

firstname  lastname  somecode  on-or-off

"John"  "Doe" 123456 ON "Jane" "Doe" 123457 OFF

Then you could export it from Excel as a comma separated values list (csv). CSV files can be easy to read (see for example this Arduino Forum topic).

If the list is static, then you could convert it in a text editor to for example an array.

But as you can see; there are more questions that we may need to see answered first to have an idea how to solve this or approach this.


   
BeantwoordenCiteren
Deel: