Hi I'm a beginner. Recently I tried to do a serial communication between arduino and raspberry pi zero w. I install the raspberry to sd card and made the ethernet connection to the pc by editing txt files in the sd card (dtoverlay=dwc2 and modules-load=dwc2,g_ether ) and by creating a ssh file.
And everything was good, I also logged in to my pi using putty.
Then I tried to follow a github article to do the serial communication.these are the steps. First it said to open the config txt and add those lines at the end. Then create the backup file and replace this new line to the file. after that when I did the rebooting, Pi disconnected from the ethernet connection and did not establish the connection again. It showed in the devices and printers panel but as an unknown device.Code:
1. sudo nano /boot/config.txtdtparam=spi=ondtoverlay=pi3-disable-btcore_freq=250enable_uart=1force_turbo=12. sudo cp /boot/cmdline.txt /boot/cmdline_backup.txt3. sudo nano /boot/cmdline.txtdwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles4. sudo reboot5. ls -l /devsudo systemctl stop serial-getty@ttyAMA0.servicesudo systemctl disable serial-getty@ttyAMA0.service6. sudo apt-get install minicom7. minicom -b 9600 -o -D /dev/ttyAMA0
Could you please explain what should I do?
Thank you very much!
What Operating System are you running on your RPiZeroW board?
Because for the current RasPiOS Bookworm release the tutorials you are following might be outdated and refer to the wrong locations for the configuration files.
I have installed this one
Raspberry Pi OS (Legacy , 32-bit)
A port of Debian Bullseye with security updates and desktop environment
Statistics: Posted by jnyrnsinghe — Thu Feb 08, 2024 6:11 pm