Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ronibandini/routerattack
ESP8266 Arduino micro game using nearby WIFI routers as enemies
https://github.com/ronibandini/routerattack
esp8266 oled wifi-network
Last synced: about 2 months ago
JSON representation
ESP8266 Arduino micro game using nearby WIFI routers as enemies
- Host: GitHub
- URL: https://github.com/ronibandini/routerattack
- Owner: ronibandini
- Created: 2020-06-14T15:12:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-13T10:10:55.000Z (4 months ago)
- Last Synced: 2024-09-13T23:58:05.697Z (4 months ago)
- Topics: esp8266, oled, wifi-network
- Language: C++
- Homepage: https://hackaday.io/project/172448-router-attack
- Size: 11.7 KB
- Stars: 14
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# routerattack
ESP8266 Arduino micro game using nearby WIFI routers as enemies - demo video at https://youtu.be/M7V6PAmy-XYIn a drawer I’ve found a Heltec WiFi Kit 8, which is a small ESP8266 with integrated 128x32 Oled screen and I’ve started to think what to do with it for the Tech at home contest.
I’ve came out with the idea of a small WiFi game named Router Attack, where nearby routers will populate the enemies. Each enemy is placed in a sort of grid with coordinates obtained from RSSI and Channel. Router encryption type is used as the tolerance to the fire. Example: if the router is open, it will be easier to take it down, even if your coordinates are not precise. If you are using AES-TKIP you will need accuracy to aim.
So, the game starts when you select a Router SSID from the list. Then a graphic shows the approximate location. Based on that graph you have to enter coordinates. After that, a shooting animation shows target versus fire, total attempts and score. A final screen shows a kind of router sheet information with SSID, Channel, RSSI and Encryption.
I’ve added a battery from an old cell phone which last forever and I’ve designed a small case front to fit an Altoids can.
The idea is pretty simple but when you play it, it turns out kind of fun.
# Circuits
Oled screen is already integrated so, you only have to connect a button to GND and D6, a potentiometer to GND, 3v and A0, and a Buzzer to GND and D7.
If you are going yo use a battery, you can directly plugin to the on board battery charger. Since I don´t have the required battery connector, I’ve decided to use an external TP charger and connect regular pins.
# Distance calculation
The formula used to calculate the distance between fire coordinates and target is the following:
z=sqrt( (currentRSSI-selectedRSSI)*(currentRSSI-selectedRSSI)+ (currentChannel-selectedChannel)*(currentChannel-selectedChannel) );
# Case
For the case, a regular Altoids can will work. Here you can download the 3d printed case front.
# Contact
📫 For code customizations or interesting Arduino and Raspberry Pi projects you can reach me at
https://www.instagram.com/ronibandini/
https://x.com/RoniBandinihttps://www.thingiverse.com/thing:4460079
# Where to go from here?
EEProm storage of score and targets, statistics of routers by encryption type. You can even create a WiFi chart analyze tool with the same coding that the game has.