0
\$\begingroup\$

I'm working on a program on Arduino to control the Raspberry. My plan is using a button to make Raspberry Pi 4 switch on by pressed button (if i pressed a button for 3 seconds, raspberry will switch on). I want to use a Python script and use GPIO's to send status signals to Arduino, but when I was reading the GPIO signal from Raspberry on Serial Monitor on Arduino I have been able to see this:

enter image description here

A 0 and 1 party, how can i use a 0 or 1 stable signal from Raspberry? GPIO is imposible?

Thank you so much!

asked May 19, 2021 at 11:46
\$\endgroup\$
4
  • \$\begingroup\$ I don't follow. How will the Pi send signals to the Arduino if it is not even on? \$\endgroup\$ Commented May 19, 2021 at 11:50
  • \$\begingroup\$ And it seems the state of the pin is not defined and is HighZ. \$\endgroup\$ Commented May 19, 2021 at 12:08
  • \$\begingroup\$ Once Raspberry is switch on, it send a signal to Arduino (to take the control of a led). That pin is used as High, declare on config.txt. \$\endgroup\$ Commented May 19, 2021 at 12:18
  • 1
    \$\begingroup\$ I have found the problem, the GND wasn't connected between them. Thank you so much for your answers. \$\endgroup\$ Commented May 19, 2021 at 12:23

1 Answer 1

1
\$\begingroup\$

Maybe it is useful for someone: Important note, it is neccesary the GND of both devices been connected between then, that was my mistake.

answered May 19, 2021 at 14:23
\$\endgroup\$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.