Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't upload sketch to the 8 relay board #1

Open
therevoman opened this issue Nov 17, 2016 · 10 comments
Open

Can't upload sketch to the 8 relay board #1

therevoman opened this issue Nov 17, 2016 · 10 comments

Comments

@therevoman
Copy link

I recently purchased an 8 relay board from ebay. I was super excited as it has everything I need for my project. However, I cannot upload a sketch to the Atmega328. What version of the Arduino IDE is needed, and what do I select under "Tools"? i.e. board and programmer

@armtronix
Copy link
Owner

Did u refer the jumper setting available on GitHub doc folder .
The board comes preloaded with the firmware. Only if u wish to modify the firmware u will need to set the appropriate jumper .

@armtronix
Copy link
Owner

@amitmangalvedkar
Copy link

amitmangalvedkar commented Oct 13, 2017

I have similar issue. However, I was unable to find which jumper settings need to be changed. I have factory piece with all jumper settings in it. I am using Arduino sketch to push the code. The 8-relay board does get detected.

@armtronix
Copy link
Owner

@amitmangalvedkar
Copy link

amitmangalvedkar commented Oct 14, 2017

@armtronix I did refer to the document, but it does not specify which jumpers to be removed.
Let me elaborate on the problem that I am facing. I plan to use Arduino sketch to control fan and lights.
Consider the customary HelloWorld, using Arduino sketch, on the ESP12S

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.println("Hello World!!!!!");
  delay(1000);
}

This code works perfectly fine on the single relay Wifi board. However, on the 8-relay board it fails with the exception

warning: espcomm_sync failed 
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed 

I strongly suspect its because of the jumpers. However, as specified earlier, the documentation does not specify what steps to be taken.

@armtronix
Copy link
Owner

https://www.instructables.com/id/WIFI-Eight-Relay-Board/
You have to change the jumper settings to burn your code on atmega328p or on esp12E chkthe above link

@armtronix
Copy link
Owner

armtronix commented Oct 14, 2017

P5 header jumpers are the one you need to understand and change according to the document to program esp or atmeg328p

@amitmangalvedkar
Copy link

@armtronix 👍
Thanks a million. This was really helpful. Changing the jumpers helped resolve the issue. It would be good to add that documentation here.
As I have not raised this issue, I cannot close it.

@taufeeq-a
Copy link

hello, i do know if this thread is alive or not but i have doubt after filling all details.when i pressed confirm it says, Settings saved to eeprom and reset to boot into new settings. lets think i rebooted the device but how i will get ip address of board to open that link in browser.

@armtronix
Copy link
Owner

You should not reboot it ,it automatically reboots .After it reboots if every thing that you have configured is correct (SSID, Password , HTTP mode ) than you will need to login to your router or use fring app (android phone) search for the device ip generally with the name espressif
enter this ip on any web browser, you will be able see control gpio link on that page, click it so that it go to the gpio control webpage . If you have opted for mqtt than your will need to enter MQTT broker IP address and configure the topics accordingly. The commands for this mode are available here :https://github.com/armtronix/Wifi_eight_relay_board/blob/master/Arduino_Code/With_Virtual_switch/Wifi_8_Relay_board_virtual_switch_with_alexa_dynamicName/mqttFunctions.ino
eg : R1_ON ---for ON, R1_OFF ---for OFF for the first relay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants