As much as I'd like to be breif with this topic, I know it won't be, so I'll just try and begin and leave some unimportant details behind. My school has FlowCode V4 and we have been usuing the software for a few weeks now covering the basics. Things like variables, and using the predefined macros, and making your own. Now, we are moving on to more complicated matters, and interestingly enough, we have been assigned almost a "self-taught" lesson where we are to explore some of the more complex features of FlowCode and apply it to a realworld model.
So far, my actual project involves a microchip (duh), 4 pushbutton (SPST) switches, 2 LED's, an LED IR array, and a 16x1 LCD display. The actual interaction between the items is something I believe I can do (as I've worked through many basic guides), but if I ever get stuck, I may be back. Now before I begin my real prodedure I'm trying to accomplish, I thought I'd ask a few questions about the components.
- 1) I did some research on a 16x1 display, and all the models I've seen seem to have somewhere in the ballpark of 16 inputs (yes, even the Hitachi one mentioned in the Help menu), whereas FlowCode only shows 6 connections. Perhaps someone can clarify how there can be such a huge gap in connectivity and still be functionality.
2) FlowCode does have an output for LED Arrays, but its not really what I'm trying to get. I have a LED array (of infrared LED's if that means anything) that contains 36 LEDs and is designed to operate between 12 and 13.8vdc wher the maximum efficiency can be achived at 13.2Vdc. If your still with me, I've basically tied all 36 LEDs together as one output, but its not just one LED and will require a higher voltage. Is there someway in flowcode that I can define an output voltage to the pin containing the output to my LED array?
3) Tieing into the last question, I notice that under the supported PIC's, there are no high voltage ones, which means that my input voltage will be anywhere from 3.3-5v, and as I mentioned in the last question, I need to get roughly 13v to one of my outputs. Is this something that a non-HV PIC is capable of and is the software capable of coding that in? If the answer to that is no, can I tie a step-up converter onto the output of my LED array's pin to kick the output voltage up to 13v, and still have that work, even if the coding does not reflect this hardware change?
Power is applied to the unit, so the LCD display has a little welcome message, some inital variables are set, (if they haven't been already) and the LED's flash a few times. After that, The unit will wait for a input (button press) from either of 2 (of the 4) buttons, while it sits on the main screen. If button 1 (for my explaination purposes) is pressed than the LCD screen will display some text like "activated at x rate" and the LED array needs to flash at a specified rate for a specified amount of time, which I just wrote as x there (roughly from like 5Hz to 20Hz). Both the rate and time will be variables that can be changed. If the other button (button 2) is pressed (from the main screen), the LCD screen will change to say something like "Options" breifly, then will change to say "Frequency - Time" accross the screen. At that time, now only buttons 3&4 are active. Well usless you hit button 2, which will just return you to the main screen. Anyway, the buttons will be placed under the screen so button 3 will coralate to changing the frequnecy, and button 4 will change the time delay. If you press button 3, the display will change to something like "Freq: 5Hz", then button 3 becomes a minus (-) button, and button 4 becomes a plus (+) button. As you press up and down (3 & 4), the display will update acordinaly. With the minimum being like 5Hz and the max at like 20Hz. Once you have it set, you hit button 2 again and it saves this value to a variable. Similaraly, the same kind of thing will happen for the time delay option. Then back on the main screen, hitting button 1 again will initate the LED array's flash sequence at the defined values.
And thats about it.
I know that is A LOT to read, but it took me awhile to write it, and I only wrote this much so as I would try and answer every question you could possibly have before trying to help me accomplish this. Any help of input on anything here would be greatly appreicated. Oh, and I did try and post this in the "FlowCode V4" forum, but my account hasn't been approved for that yet. Thanks again!