LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Door Lock Help

Hello Guys

Im beginning to develop with my arduino, im not a skilled programmer, but i got some sense and im educating myself as a electronic technician but im seeking some guidiance in labview.

Im trying to make a door lock with a sensor and a login system.

i have been guilding a driver system for my DC motor, so it can go both directions and power it on and off. ( Im not uploading a schematic but i can tell u that it got 4 pins: Power, Direction, VCC, GND)

Direction and Power runs on 5V and i use a digital pin to control it.

I control Direction with Pin 10 and Power with Pin 11 on the arduino, i got the sensor on pin 3 and another sesnor on pin 4. (These sensors are only buttons for now, so its high or low)

My problem is now that i want alittle guidiance, how to use a login system like a string to run the motor and make it stop with it hits a sensor (also trying to make it fail safe).

i posted my labview project with my subvi's for the motor (everything in the rar file)

This post is only for help and guidance not for pure results

Thanks in Advance

- Troager

0 Kudos
Message 1 of 7
(5,957 Views)

Could you please post a file format that everybody can access (a zip file)?  Also, if you could save your VI's for LabVIEW 2009 so that people with older versions of LabVIEW can open them, it would make things much easier.

So, can I assume that you are already successfully able to control the motor speed and direction?

0 Kudos
Message 2 of 7
(4,517 Views)

i Updated the original post, with new files for LabVIEW 9 .

And yeah i can control power on and off and direction correct.

i have been sitting and wondering if it would be wise to use and event structure in this case ?

0 Kudos
Message 3 of 7
(4,518 Views)

Thanks.  What kind of login system are you trying to implement?  You say something about "a string to run the motor".  What does that mean?  Are you saying that you just want to have a string password login system?  For something like this, you can use an event structure that will execute the code when you hit the submit button (and the username and password are correct).

See the solution in this thread:  http://forums.ni.com/t5/LabVIEW/user-login-system/td-p/1585732

0 Kudos
Message 4 of 7
(4,518 Views)

Im uploading a sketch of a flow chart. im still thinking but thats a start.

Im gonna use an ID12 Innovations as the login system (RFID Reader) and if i remember corectly im getting a number or a string out of it , thats why i want a string to be the user.

Lets say User 1 logs into the system, then i need to feel on the sensor to see what position the lock is in, if its unlocked it needs to be locked and vice versa.

If an Unknown User (Wrong ID) logs into the system, then it needs to lock the door no matter what.

And i need to implement a reset button / RFID tag so it opens the door

0 Kudos
Message 5 of 7
(4,518 Views)

You may want to consider using a state machine architecture.

You could implement an idle state, a check ID state, an open door state, etc.

-Sam K

LIFA Developer

Message 6 of 7
(4,518 Views)

Maybe i should look into that one. looks interesting

0 Kudos
Message 7 of 7
(4,518 Views)