diff --git a/README.md b/README.md index 61365ab..8c0e43d 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ This project is a wind direction sensor made of scraps I happened to have. Feel Estimated time: a few hours? idk, depends how neat you want it. +obligatory identification for the peer reviewers: [discord message link](https://discord.com/channels/720703210884563065/835516699263762483/1369758839167123586) (i also have the same nickname and profile pic there so it should be easy to find me) + ## Objective The purpose of this device was really just an excuse for me to build a rotary encoder. But I do also want to investigate the feasibility of making a DIY wind turbine for charging things, so the data generated by this could be used to figure out a good location for that. Although wind speed is more relevant than direction. @@ -10,17 +12,20 @@ The purpose of this device was really just an excuse for me to build a rotary en As previously noted, these materials are just scraps I had, exact measurements and type are not important. If you have access to a 3D printer or laser cutter and MDF, that would likely give a neater result, but you'd have to model the parts first. - soldering tools -- glue - I used hot glue but [wheat paste might be a better alternative](https://www.youtube.com/watch?v=45JhacvmXV8) +- glue - I used hot glue but [wheat paste might be a better alternative for the cardboard only joins](https://www.youtube.com/watch?v=45JhacvmXV8) - compass (the drawing tool) - sharp knife - black marker - white paper -- 10kOhm resistor x3 +- 10k Ohm resistor x3 +- 220 Ohm resistor - photoresistor x3 (TODO detail) +- white LED - Raspberry Pi Pico W/WH - bearing 25mm diameter - large, opaque plastic box -- piece of wood ~2x2x14cm +- wood block ~2x2x14cm +- thin flat sticks ~20cm x4 - 3mm & 5mm drill - wires @@ -47,9 +52,13 @@ As previously noted, these materials are just scraps I had, exact measurements a - Solder the components using the diagram below TODO diagram ![](img/encoder.jpg) +## full assembly +TODO +![](img/support_pieces.jpg) +![](img/vertical_axle.jpg) ## Computer setup -I used VS code but you only need a terminal for building this. +I used VS code but you don't need any extensions for just building this. ### Pico firmware Requires the following software: `git`, `make`, `cmake` and a C compiler @@ -57,6 +66,7 @@ Requires the following software: `git`, `make`, `cmake` and a C compiler git clone https://git.crispypin.cc/CrispyPin/wind_station ``` Now edit the file `pico/src/wifi_cred.h` and update the values accordingly. +- note: if you change the port, also change it in `wind_server/src/main.rs` Finally build it with: ``` diff --git a/img/support_pieces.jpg b/img/support_pieces.jpg new file mode 100644 index 0000000..52eed7b Binary files /dev/null and b/img/support_pieces.jpg differ diff --git a/img/vertical_axle.jpg b/img/vertical_axle.jpg new file mode 100644 index 0000000..401f5ed Binary files /dev/null and b/img/vertical_axle.jpg differ diff --git a/wind_server/src/main.rs b/wind_server/src/main.rs index 0b3a4c3..64cdd42 100644 --- a/wind_server/src/main.rs +++ b/wind_server/src/main.rs @@ -1,6 +1,6 @@ use std::io::{BufRead, BufReader}; -const IOT_BIND_ADDR: &str = "192.168.0.108:13122"; +const IOT_BIND_ADDR: &str = "0.0.0.0:13122"; //const HTTP_BIND_ADDR: &str = "192.168.0.108:80"; fn main() -> Result<(), Box> {