cancelled project due to lack of support
bossgp
Posts: 13
Lack of support so have decided to discontinue this project and wipe the slate clean
Comments
While I have not done much work on pinball machines I don't see that the circuitry is much if any different from the automation systems I have worked on, and would certainly chip in with suggestions. You can also take advantage of the objects in the OBEX for reading switches, controlling leds and solenoids, and most other functions you may need.
To start I would suggest posting an initial diagram and listing the number of switches to read, types of led displays and their current/voltage requirements, and solenoids with their current/voltage needs.
The gameplay and whatnot is done by a PIC coded in C.
Also, main idea behind it is to be able to use ANY language, thats my secret sauce
I convert useful bits of Arduino code to Spin all the time. If you stick with C it may be easier. About the only thing that I really like about the Arduino is the millis() function. Since the Propeller doesn't have interrupts, I launch a cog like this:
Instead of having a function, I have a global variable called millis that I can use or even reset if needed (you can't do that with the Arduino without resetting the whole program). There is a lot of time left in the background loop so I uses that for "background" features that make sense for my application. On the EFX-TEK HC-8+ controller I use this time to update an R/G LED (which can be red, green, yellow, or off, and blink two colors if desired) and scan a couple shift registers which gives me the TTL inputs and the settings of the board's DMX switch.
The Prop itself is not really capable of running a resource hungry language like Python but I know which fast and compact interactive language I would specify
@bossgp, since you're new, you may not realize this but Peter is clearly advocating the new Whitespace interpreter for the Propeller.
Four ‘595/TPIC style shift register chips could drive 32 solenoids.
The max voltage and current the solenoids require will determine the type of drivers required.
Music/sounds using one or two pins for PWM. Display animation would be the hard part. depends on the display hardware.
A ‘595 or similar shift register for up to 8 servos. Could possibly be combined with #1 circuitry.
All this could possibly be done by a single Propeller if the hardware and software were carefully designed. Not likely to be done in Python, but Spin/PASM, Tachyon, or C may work.
David-
???. I would think peter is referencing Tachyon?
Maybe the whitespace space and tabs can represent bumper and ball actions? This also simplifies the display which can utilize a zero-power cellulose flat-screen to display whitespace code and results using a null-wire bus interface.
Post a couple of clear photos of the board from top and bottom as that may yield a clue.
EDIT: After thinking this out, both pull-ups are a good idea if you are using these line's as a bus for comunication between multiple devices.
I am missing capacitors in your description, the prop needs some capacitors really near to the pins for vdd/vss.
Best schematic might be that for the breadboard PE kit.
Enjoy!
Mike
yes, pull-ups on both lines are (should) be standard. Parallax is lazy there not putting pull-ups on both pins.
The reason is as you said the use as a buss. Having pull-ups on both lines allows the driver (Prop) to just drive the pins low or float them, but no need to drive high.
Enjoy!
Mike
You just compile this main file and all sub files get included automagically.
Enjoy!
Mike