Automatic barrier project
Moderator: Benj
Automatic barrier project
Hello I'm a student from france, I have a project to do for in 1 month. This project is a barrier which will rise automatically when a radar detect a level of the water to prevent flooding.
And I have to do a programm which will rise this barrier . My teacher have already done the radar programm but I don't know how to use flowcode and this teacher don't teach really good, so if you could help me, I don't know how but if you have a site where i can learn clearly how to use flowcode and how to do my programm. You'll be really nice.
And thanks to all of you for reading my post and for your helps.
And I have to do a programm which will rise this barrier . My teacher have already done the radar programm but I don't know how to use flowcode and this teacher don't teach really good, so if you could help me, I don't know how but if you have a site where i can learn clearly how to use flowcode and how to do my programm. You'll be really nice.
And thanks to all of you for reading my post and for your helps.
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: Automatic barrier project
To learn about Flowcode, check the Learning Centre
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- Posts: 188
- Joined: Thu Jun 28, 2012 7:29 pm
- Location: Durham
- Has thanked: 86 times
- Been thanked: 186 times
- Contact:
Re: Automatic barrier project
Welcome jbb29200 to our forum
When doing projects that sound complex, it is a good start to try and think of them in terms of their functional parts.
The radar - I would think of this as a switch. Water high - ON. Water low -OFF.
Now we can use this switch within flowcode as a switch - INPUT.
Now the barrier. This is our -OUTPUT (from the controller). 1 - UP; 0 - DOWN.
Put this in a loop and you have your start of a solution.
Q. How could this be improved?
Now your programming.
Hope this gets you started.
Regards
Dave
When doing projects that sound complex, it is a good start to try and think of them in terms of their functional parts.
The radar - I would think of this as a switch. Water high - ON. Water low -OFF.
Now we can use this switch within flowcode as a switch - INPUT.
Now the barrier. This is our -OUTPUT (from the controller). 1 - UP; 0 - DOWN.
Put this in a loop and you have your start of a solution.
Q. How could this be improved?
Now your programming.
Hope this gets you started.
Regards
Dave
Re: Automatic barrier project
I have already the radar programm but for monday i have to link it with a barrier programm that i'm beginning to work on it.
- Attachments
-
- radar.fcfx
- (15.91 KiB) Downloaded 282 times
Re: Automatic barrier project
The problem is that I have to link the radar programm to give the information of the water height to an hydraulic central because my barrier work with a hydraulic cylinder and with this information he will raise the barrier. I'm too bad to do that so sorry i'll give up. I'll try to get some point with talking about my project.Thank you all for your help .
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Automatic barrier project
Hi jbb29200,
As you're a student it would be best to learn basics first.
Otherwise things will not work as expected.
For example in your radar flowchart you have got within LitDisdance Marco a calculation:
Since .Return local variable is an integer it can only use whole numbers in any calulations.
So if then after
The result will be
So you will get 0 whatever value .Return starts off at.
If you want to use decimal numbers, then you must use Floats instead of integers or bytes.
I would agree with kersing and recommend The learning centre.
In there you should see links to Videos and a free course (if not got the eblocks just use the simulator).
Create your own flowcharts, then ask questions when you get stuck.
Take it a step at a time.
Also if you download someone else's flowchart, learn how to add variables to the Simulation debugger so you can learn and follow what's going on.
Martin
As you're a student it would be best to learn basics first.
Otherwise things will not work as expected.
For example in your radar flowchart you have got within LitDisdance Marco a calculation:
Code: Select all
.Return = .Return * 0.02985
Since .Return local variable is an integer it can only use whole numbers in any calulations.
So if
Code: Select all
.Return = 100
Code: Select all
.Return = .Return * 0.02985
Code: Select all
100 * 0 = 0
If you want to use decimal numbers, then you must use Floats instead of integers or bytes.
I would agree with kersing and recommend The learning centre.
In there you should see links to Videos and a free course (if not got the eblocks just use the simulator).
Create your own flowcharts, then ask questions when you get stuck.
Take it a step at a time.
Also if you download someone else's flowchart, learn how to add variables to the Simulation debugger so you can learn and follow what's going on.
Martin
Martin
-
- Posts: 188
- Joined: Thu Jun 28, 2012 7:29 pm
- Location: Durham
- Has thanked: 86 times
- Been thanked: 186 times
- Contact:
Re: Automatic barrier project
Hi jbb29200
I have had a look at your 'Radar' project and therefore I agree with medelec35. To me, this is too big a jump for someone either:
- learning to use Flowcode
- learning to program microcontrollers
I would strongly suggest you have a look at this learning course available here:
http://www.matrixtsl.com/resources/file ... course.pdf
This is an excellent introduction to help develop both the concepts of programming and the use of Flowcode as a development tool. You only state you are new to Flowcode, so you may have a great deal of programming skills using other programming languages. If that is the case, then the above course will address those learning needs also. Your teacher may not be aware of the course materials available - check!
Best Regards
Dave
I have had a look at your 'Radar' project and therefore I agree with medelec35. To me, this is too big a jump for someone either:
- learning to use Flowcode
- learning to program microcontrollers
I would strongly suggest you have a look at this learning course available here:
http://www.matrixtsl.com/resources/file ... course.pdf
This is an excellent introduction to help develop both the concepts of programming and the use of Flowcode as a development tool. You only state you are new to Flowcode, so you may have a great deal of programming skills using other programming languages. If that is the case, then the above course will address those learning needs also. Your teacher may not be aware of the course materials available - check!
Best Regards
Dave
Re: Automatic barrier project
Thank you for your kindness but it's for tomorrow and the final test is in two weeks it's too short to learn for my project i'll try to do my best .