Page 1 of 1
Automatic barrier project
Posted: Wed May 10, 2017 9:21 pm
by jbb29200
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.
Re: Automatic barrier project
Posted: Wed May 10, 2017 11:41 pm
by kersing
To learn about Flowcode, check the
Learning Centre
Re: Automatic barrier project
Posted: Thu May 11, 2017 10:27 am
by jbb29200
Ok thank you
Re: Automatic barrier project
Posted: Thu May 11, 2017 9:08 pm
by johnsondav
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
Re: Automatic barrier project
Posted: Sat May 13, 2017 8:44 am
by jbb29200
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.
Re: Automatic barrier project
Posted: Sun May 14, 2017 9:34 am
by jbb29200
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 .
Re: Automatic barrier project
Posted: Sun May 14, 2017 11:33 am
by medelec35
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
Re: Automatic barrier project
Posted: Sun May 14, 2017 12:11 pm
by johnsondav
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.flowcode.co.uk/old_site/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
Posted: Sun May 14, 2017 1:02 pm
by jbb29200
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 .