function3d / petalot

PET Bottle To 3D Filament
Other
550 stars 75 forks source link

Cannot connect #6

Closed NickGreen98 closed 1 year ago

NickGreen98 commented 1 year ago

I cannot connect to the D1 mini to set up the wifi. I have tried multiple times. adding a way to manually enter the wifi info before flashing would be good.

function3d commented 1 year ago

When you upload the firmware for the first time, the Wemos D1 starts a WIFI access point called PETALOT, you connect to this WIFI and navigate to the ip 192.168.1.4, here you put a free ip in your netword for the Wemos D1 as well as the parameters of your local wifi, your SSID, your WIFI password, your gateway and 255. 255.255.0 in the subnet mask, submit the form and if all goes well the Wemos D1 will connect to your WIFI and you will be able to access it through the ip you assigned in the previous step.

NickGreen98 commented 1 year ago

The WeMos D1 broadcasted the local network called petalot. None of my devices would connect to the network to fill out the form.

On Sun, Dec 18, 2022, 7:40 AM function3d @.***> wrote:

When you upload the firmware for the first time, the Wemos D1 starts a WIFI access point called PETALOT, you connect to this WIFI and navigate to the ip 192.168.1.4, here you put a free ip in your netword for the Wemos D1 as well as the parameters of your local wifi, your SSID, your WIFI password, your gateway and 255. 255.255.0 in the subnet mask, submit the form and if all goes well the Wemos D1 will connect to your WIFI and you will be able to access it through the ip you assigned in the previous step.

— Reply to this email directly, view it on GitHub https://github.com/function3d/petalot/issues/6#issuecomment-1356813594, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4RYRHW5K4REWFFGUSYBW7LWN4O6FANCNFSM6AAAAAASTBXPTY . You are receiving this because you authored the thread.Message ID: @.***>

function3d commented 1 year ago

working on a version that works directly by loading the firmware without the need to enter wifi data and with the possibility to configure the device from the terminal via serial communication.

function3d commented 1 year ago

The new version is uploaded, if you decide to try it, to configure the device you can use the serial monitor of arduino IDE, after uploading the firmware, open arduino IDE and its serial monitor and restart the wemos, in the serial monitor you will see a JSON with the configuration, copy and edit it complete and paste it complete, once edited, in the serial monitor input, press enter, the device will use your edited JSON input as new configuration and will restart so it will start the process of trying to connect to your WIFI if you have entered the WIFI/network data in the new configuration.

function3d commented 1 year ago

Hi,

FS.h is part of the core of Arduino ESP framework, did you installed it ? https://github.com/esp8266/Arduino

"ssid":"YourWifi","password":"YourWifiPassword","LocalIP" :"192.168.0.100","Subnet":"255.255.255.0","Gateway":"YourIpGateway" These parameters are from your current WIFI, with these parameters the electronics works as a client of your WIFI network instead of as an access point.

Regards Raul, function.3d

El mié, 4 ene 2023 a las 21:32, NickGreen98 @.***>) escribió:

Hello,

I am still not able to connect. I am able to upload the binary using esphome-flasher, but I am still unable to upload using arduino IDE. It is missing the FS.h header file mentioned in conf.hpp, and I don't know what library that came from.

As for using the serial monitor to get the ssid and pass in, here is my output, I took out the ssid and password for safety:

To:Temperature Vo:Speed Tm:Maximum Temperature Kp:Kp Ki:Ki Kd:Kd R1:R1 Max:Maximum value for MOSFET (0-255) ssid:SSID password:SSID Password LocalIP:IP address Subnet:Subnet Gateway:Gateway ifttt_event_name:IFTTT Event Name ifttt_api_key:IFTTT API Key {"To":220,"Vo":40,"Tm":250,"Kp":23,"Ki":0.043,"Kd":160,"Max":210,"ssid":"SSID","password":"PASSWORD","LocalIP":"192.168.0.100","Subnet":"255.255.255.0","Gateway":"0.0.0.0","R1":10000,"ifttt_event_name":"","ifttt_api_key":""} ...................AP Ready

— Reply to this email directly, view it on GitHub https://github.com/function3d/petalot/issues/6#issuecomment-1371389472, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2GTVH53CCM6FCMJND2TDJ3WQXM55ANCNFSM6AAAAAASTBXPTY . You are receiving this because you modified the open/close state.Message ID: @.***>