Transfer from Basic Stamp to EEPROM
Keith Hilton
Posts: 150
in BASIC Stamp
If I ever developed a Basic Stamp project code that I wanted to transfer from the Basic Stamp to a EEPROM or EPROM. How would I go about that process? Is there any Parallax book, or other book that explains the process. Does it involve learning how to code a Universal Programmer?
Comments
The PBASIC language on the BASIC Stamp is intellectual property of Parallax, not generic microcontroller code. If you want to run code in PBASIC, you have to purchase either a BASIC Stamp module or a BASIC Stamp oem chip that has the PBASIC interpreter burned in.
Tracy, can you give me a list of the simplest Basic Stamp parts, that fit in the smallest place, at the least price? I don't want SMT parts, only through the hole parts. Seems to me the Basic Stamp 1 plug in board might work for me. For the last 20 years I have used a infra red system to control a variable voltage. I have been wondering if a different system might save me construction time.
The BS1 does SPI interfacing nicely, but there's no built-in I2C protocol. It can do DAC using the PWM statement and measure resistance using the POT statement (timing the discharge of an RC circuit). A lot depends on how your sensors interface.
If you want to know the minimum components that constitute an OEM BASIC Stamp 2, please see the following link.
http://savagecircuits.com/index.php/projects/basic-stamp-projects/18-bs2-oem-lite
An EEPROM in and of itself does not convert voltage. I'm sure you know that, but just saying. You asked then about the BASIC Stamp, through hole version, and Chris pointed you to the Stamp OEM kit. The Stamp itself does not have a real analog input for voltage, although it can read a variable resistor. The analog outputs of the sensors you mentioned might well take a different type of converter, likely an external chip. I see that your pedals use a clever infrared remote. Will that somehow be connected to the BASIC Stamp? You see, I'm still very confused about what you want to accomplish in that small space, which might be the interior of a guitar pedal, or not.
The BASIC Stamp 1 has nice capabilities for a small project. The Stamp1 editor used to offer the capability to burn a Stamp1 interpreter and program into a standalone PIC16C58 (given a burner tool and the old editor -- I don't know if that capability survived in the new editor).
Tracy, in working with the Basic Stamp and the Memsic 2125, it reminded me so much of my work with the Honeywell HMC1501.
Some good reading for you would be Honeywell AN211 concerning the AMR bridge. In AN211 there are examples of the bridge feeding a microcontroller. The HMC1501 requires a magnet, but can produce a variable voltage with a output op amp. If I used the HMC1501, I would not need the Basic Stamp. So, I have been doing a "lot" of thinking. That is how you stay in business, you do a lot of thinking.
Thanks for the explanation. That clears up a lot for me, also referencing the other thread you've had about led brightness and the Memsic tilt sensor. Those are nice looking solid volume pedals. I'm not a rocker myself, but one of my sons has spent a small fortune on effects and volume pedals for his alt-rock avocation.
The Honeywell HMC1501 magnetic field sensor is interesting. You know, Memsic also sells an analog output version of their accelerometer if you still want to go the pure analog route to the voltage controlled amplifier. It would take an op-amp circuit, and probably some individual trimmers for scale and offset. On the other hand, a microprocessor in the signal path would however add a lot of possibilities.
Don't give up on surface mount, for the same reasons you mentioned for the cast iron vs laser cut sheet metal. If you have a bunch of SMT boards assembled by a contract manufacturer, it would save you a lot in the long run, I think.
The scr limits the voltage to 12 volts with a re-set-able fuse. The circuit is designed for 9 volts, but the public will plug "anything" handy into the power plug. Since most wall warts are now little switching power supplies, most manufacturers have eliminated the voltage regulator from their circuit. Without some kind of over voltage protection, it would only be a matter of time until some guy plugged in a high powered wall wart. Then wonder why the unit failed. By the way the public no longer reads instructions.