Published:2011/7/28 1:36:00 Author:Amy From:SeekIC
By Jan Buifing and Luc Lemmens
BASIC Stamp
Not just to underline their business relation with distributor Parallax Inc., but also to encourage lab workers, Hoptroff provide lots of information on linking the Flexipanel to the famous BASIC Stamp. And a very welcome bit of information it is because the BASIC Stamp (BS2p) is widely known and extremely popular among budding programmers (and a lot of professionals, too...) if only because it can be programmed in... BASIC!
Figure 1 shows the really simple connections between the BS2p Demo Board and the irGUI452 module. The practical assembly is shown in the photograph in Figure 2. LEDs may be added to monitor the CD, Ready, Data and Test pins (shown dotted in Figure 1). If so, 4k7 current limiting resistors should be used to prevent overloading the power regulator on the Basic Stamp.
The 10k resistor between Attn and Vss is only required if nap mode is to be used — it ensures that the Attn pin is not pulled high when Stamp resets. The 4k7 pull-up resistors on the SDA and SCL pins are required in ail cases.
In the example application, two check boxes are displayed on the PDA. When Send is pressed, the state of the second check box is displayed on the LCD display; the value is inverted and written to the first check box. Thus if a Read operation takes place after the Send operation, the first check box’s state will be the opposite of the second.
The required resource script is shown in Listing 1. It is read using the irGUI configuration tool and used to program the irGUI. Correct irGUI programming can be verified using a PDA to read the controls.
Once the irGUI is configured, the Basic Stamp can be programmed. The required code is found in the Flexipanel documentation. Correct operation may now be checked by pressing the Send button.
It is also possible to connect the irGUI452M directly to the BS24p without the Demo Board. The 40 mA voltage regulator on the BS2p module is then usually sufficient to power the irGUI device, whose consumption peaks at 30 mA during infrared communication. However, if additional components are added, a more powerful regulator may be needed.
Reprinted Url Of This Article: http://www.seekic.com/blog/project_solutions/2011/07/28/FlexiPanel_IR_Infrared_glue_for_micros_and_PDAs_(2).html
Print this Page | Comments | Reading(352)
Author:Ecco Reading(30181)
Author:Ecco Reading(3461)
Author:Ecco Reading(3181)
Author:Ecco Reading(3661)
Author:Ecco Reading(5231)
Author:Ecco Reading(3248)
Author:Ecco Reading(3390)
Author:Ecco Reading(3530)
Author:Ecco Reading(3935)
Author:Ecco Reading(3707)
Author:Ecco Reading(3677)
Author:Ecco Reading(3714)
Author:Ecco Reading(6028)
Author:Ecco Reading(3692)
Author:Ecco Reading(4478)