Hey Everyone,
Sorry for the slow response regarding the beacon mod. After posting what I had done, I was made aware of a new mod coming out that will basically allow you to accomplish the same thing (using the method I found) and a whole lot more. I was given permission to share this with the rest of you from the Evolution Mods team to give you an idea of what they are working on.
https://docs.google.com/presentation/d/1bzeRNuK_dVtNlqba_WGSNsovRexUpXru3ZoEK_FIZiU/edit?usp=sharing
Basically it would be a mod that allows you to trigger LED's to do what you want from many different things in what I think is almost any game easily. It sounds pretty awesome and I'm anxious to see what all it can do.
Note that I am not affiliated with the Evolution Mods team and I don't know any more than what is in the PDF really, but since I've had some people asking about kits for the beacons, I felt that they may be unnecessary with this new mod coming out.
I will still share how and what I did if people want to do it themselves, but I have a feeling many may prefer to go with the new board.
All that being said what I used is pretty simple:
1x ATTiny85 - I programmed this using an Arduino Nano. The ATTiny can use Arduino code, you could also just use an Ardunio, but the chips are much cheaper! You can test using an Arduino, then program the same code to the ATTiny. Note you will need to change the pins to what pins the chip has. There are multiple ways to program the microcontroller, but doing as I did is the cheapest solution. There are many youtube videos out there that show you how to set this up and how to program it so I won't go into that part here.
1x 10k resistor
1x photo resistor
beacons (only the red/brown wires are used for this implementation) *Note that while many LED tutorials tell you to use a resistor, these beacons have resistors built in so you don't need any additional ones.
5v buck converter - I am drawing power from what would be the staged flippers (I think). They are unused but provide 12V. The Apron mod seems to grab power from the launch button, you could probably use that too as the beacons are very minimal draw.
Attached is a rough schematic of how to wire it all up.
The placement of the photo resistor is shown in the other photo. This is the board directly to the left of the airlock. If you look at the bottom of the airlock you should see green wires coming out (the opto) of the sides of the trough. Follow those to the bottom of the board. Right above the connectors there should be a green LED that is lit. This is the opto status LED for the airlock opto. It is on when the opto circuit is closed, and off when the circuit is open (ball in the trough).
I used a hot glue gun to place the photo sensor in place. Make sure you don't get hot glue between the sensor and the LED. You will also need to place something dark over it to keep other light out. I used electrical tape.
**Note that this part will be required trigger the beacons whether you do this yourself or get EM's mod boards. If you wanted to get really fancy, you could also wire into the opto wiring (which is what my initial plan was), but i feel this is the easiest less intrusive solution.
(I don't have the code on this PC so I'll post it a bit later, it's small and simple though)
pasted_image (resized).png
pasted_image (resized).png
Added 69 days ago:
Beacon code:
const int PHOTO_PIN = A1; // the analog pin that the photoresistor is attached to
const int LED_PIN = 3; // the number of the LED pin
int photoValue = 0; // variable to store the photoresistor value
void setup() {
pinMode(LED_PIN, OUTPUT);
}
void loop() {
// read the photoresistor value
photoValue = analogRead(PHOTO_PIN);
// if the photoresistor value is below a certain threshold, turn on the LED
if (photoValue < 100) { // you may need to adjust this threshold value to suit your specific photoresistor
digitalWrite(LED_PIN, HIGH); //turn high led
} else {
digitalWrite(LED_PIN, LOW); // turn off led
}
}
Added 69 days ago:
Note it did not keep the formatting of the code