Basic Stamp 2 programing help
cocush
Posts: 2
Hello,
I am new to this forum and needed help figuring out how to write a program in BS2.·I need to construct a light-meter using·4 LED's to display five states; light level from 0 to 20% (no·LED's on), 20to 40% (1 LED on) , 40 to 60% ( 2 LED's on) and 60 to 80%·(3 LEDs on) and· 80 to 100% ( 4 LEDs on). and the percentage pertains to light level, so a very dark room would have 0% and·very bright would be 100%. I was reading the·BS2 manual and figured i need to use a photocell and a capacitor along with the RCtime command but i have no idea how to start or write the program. If anybody knows how to write or can help me figuring out·how to.
Thank you.···························
I am new to this forum and needed help figuring out how to write a program in BS2.·I need to construct a light-meter using·4 LED's to display five states; light level from 0 to 20% (no·LED's on), 20to 40% (1 LED on) , 40 to 60% ( 2 LED's on) and 60 to 80%·(3 LEDs on) and· 80 to 100% ( 4 LEDs on). and the percentage pertains to light level, so a very dark room would have 0% and·very bright would be 100%. I was reading the·BS2 manual and figured i need to use a photocell and a capacitor along with the RCtime command but i have no idea how to start or write the program. If anybody knows how to write or can help me figuring out·how to.
Thank you.···························
Comments
The references you need are "What's a Microcontroller?" and the "BASIC Stamp Syntax and Reference Manual". Work through the problems in "What's a Microcontroller?".