Skip to content
Home » raspberry pi » Page 3

raspberry pi

Visit Tacticalware.com for information related to this tag and others. We look forward to assisting in your tech projects with our in-depth knowledgebase…

UDATE EXISTING RASPBERRY PI 4 FIRMWARE / EEPROM

This guide assumes you already have a running Raspberry Pi 4 device. If you do not already have it setup, you can follow this guide first (https://tacticalware.com/install-raspbian-os-on-raspberry-pi-4/)

This objective of this guide is to show you how to update Raspian and how to update the eeprom / firmware

Open a terminal
sudo bash
apt update
apt upgrade
rpi-update

Would you like to proceed
Type y
Now reboot your Pi

Open a terminal
sudo bash
rpi-eeprom-update -d -a
reboot your Pi after it updates

Open a terminal
raspi-config
Scroll down and select Option 8 – Update
Update now runs, and after the update completes
Scroll down and select Option 6 – Advanced Options
Then scroll down to Option A7 – Bootloader Options
Select Option E1 Latest – Use the latest version of the boot rom software
Press Enter
Select OK
On the Reset boot rom to defaults screen
Select No
On the Boot rom not reset to defaults screen
Select OK
Scroll down and select Finish
Select Yes

Your Firmware / EEPROM are updated, and you will have the latest version with the latest features.

Hardware I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9


Thanks for Reading!

SSH On My RASPBERRY PI 4

This is a quick one. I needed ssh on my Raspberry Pi 4, and this is how I did it

Turn on the Pi

Once on the Desktop, click on the Terminal icon

Type:
sudo bash
apt-get update
apt-get install openssh-server
y

Once that installs successfully
systemctl enable ssh
systemctl start ssh

That’s it. You can now login remotely to your pi through ssh



Thanks for reading

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

RASPBERRY PI CHROMEDRIVER INSTALLATION

Instead of running through the long drawn out directions that accompany the error on the screen….this is what i used to install chromedriver

pip3 install chromedriver

You’re welcome



Thanks for reading

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

USING OCTOPI TO FLASH FIRMWARE

This guide will be specific to the setup for my CR10 S5 with the SKR 1.4 Turbo board

Once I build the firmware in VSCode, I needed an easy way to upload it to the device.

To do so, I logged into Octopi

Clicked on the Wrench icon

Clicked on Plugin Manager

Searched for Firmware Updater

And installed the application

Now I have to log into my Raspberry Pi with Octoprint on it

So I open Putty

Input the IP Address for the PI and login

The I enter the following commands

sudo apt-get install usbmount
sudo nano /etc/usbmount/usbmount.conf
Find FS_MOUNTOPTIONS and change it to:
FS_MOUNTOPTIONS=”-fstype=vfat,gid=pi,uid=pi,dmask=0022,fmask=0111″
sudo systemctl edit systemd-udevd
Add these lines

[Service]
PrivateMounts=no
MountFlags=shared

Save and Close the file

sudo systemctl daemon-reload
sudo service systemd-udevd –full-restart

reboot

Log back into the PI

cd /media
ls -la
Verify full permissions on /media/usb
For mine, /media/usb pointed to usb0 so I had to run
chmod 777 usb0

Now log into Octopi through the browser

Click back onto the Wrench

Navigate down to Firmware Updater

Click the Wrench in Firmware Updater

Set the Flash Method

For my flash method, using the LPC1769 board, I had to select LPC1768

For the Path to firmware folder, I put in /media/usb

Click test to make sure the path is valid

Save

Back in Firmware Updater main screen

Click Browse

Find the firmware.bin file that you created with VSCode

and Click Flash from file

Now the board is flashing and when it completes you will get the message Flash Successful

Thats it!



Thanks for reading

Hardware that I use:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

ENDER 3 PRO – OCTOPRINT – BED SIZE ISSUE [SOLVED]

When you send a print job to your Ender 3 Pro, using your Octopi, it starts to print, and the hotend does not recognize the correct size for the bed. The hotend is pushed off to the side, begins clicking, and the print is a mess.

Solution:
Make sure your Slicer has the correct bed size set in it
Make sure the OctoPi has the correct printer setup in it
Turn OFF your printer
Turn OFF your OctoPi
Disconnect the USB Cable in your Ender 3, from the OctoPi
Wait 30 seconds
Turn ON the printer
Turn ON the OctoPi
Wait 1 minute
Plug the USB cable back into the Ender 3
Login into your OctoPi
Click connect so the OctoPi works again with the Ender 3
Send the print job that failed before

And now it works!

Writing OctoPrint to SD Card

Quick How-To using a Windows 10 Computer

Simply put, you need to download a third party application to write the OctoPi image to an SD Card. I suggest Etcher for this

Download Etcher from https://www.balena.io/etcher/
Install Etcher onto your Windows 10 computer
Download the OctoPrint image from https://octopi.octoprint.org/latest to your local hard drive on your Windows 10 computer
Unzip the OctoPrint image once the download finishes
Plug your SD Card into the Windows 10 Computer
Open balenaEtcher
Click Select Image
Select your OctoPrint***.img file
Your SD Card should be automatically found and selected by Etcher
Click Flash
The image will now be written to the SD Card
When the image has completed writing you will see the message Flash Complete!
You can now insert the OctoPrint SD Card into the Raspberry Pi and fire it up



Thanks for reading

Hardware that I use:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

Raspberry Pi Backup using MAC

RASPBERRY PI – Backup Your Raspberry Pi SD Card Using a MAC

 

This is a quick how to on backing up your Raspberry Pi SD Card

Shutdown the Raspberry Pi and remove the SD Card

Plug the SD Card into your MAC

Go to Spotlight (the little magnifying glass on the top right of your MAC), type Terminal, and press Enter

Now the rest of the commands are done in the Terminal

Type:
sudo bash and press enter

Type in your password to get the # prompt

Type:
mkdir /raspberry-pi and press enter
mkdir /raspberry-pi/backups and press enter
cd /raspberry-pi/backups and press enter

Type
df -h and look for your SD Card. My card is listed as /dev/disk1s1. Once you know which card is your SD Card type

diskutil unmount /dev/disk1s1 (or whatever your SD Card is listed as)

dd if=/dev/rdisk1 of=/raspberry-pi/backups/wheezy-todaysdate-backup.img bs=1m and press enter

your SD Card will now be backed up

Once the backup is complete type:
diskutil eject /dev/rdisk1

And that is it.



Thanks for reading

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

Restoring a Raspberry Pi Backup

This is a quick how to on restoring a backed up image to your SD Card Plug the SD Card into your MAC Go to Spotlight (the little magnifying glass on the top right of your MAC), type Terminal, and press Enter Now the rest of the commands are done in the Terminal Type: sudo bash and press enter Type in your password to get the # prompt Type: cd /raspberry-pi/backups and press enter Type df -h and look for your SD Card. My card is listed as /dev/disk1s1. Once you know which card is your SD Card type diskutil unmount /dev/disk1s1 (or whatever your SD Card is listed as) dd bs=1m if=/raspberry-pi/backups/wheezy-todaysdate-backup.img of=/dev/rdisk1 and press enter your SD Card will now be restore the backup Once the backup is complete type: diskutil eject /dev/rdisk1 And that is it. Thanks for reading Hardware that I use: Raspberry Pi 4 (4gb) https://amzn.to/3q551IO SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter https://amzn.to/2Vfvo0y CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C) https://amzn.to/3fNTYPu CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet https://amzn.to/33u5hr9 Western Digital 500GB WD_Black SN750 NVMe https://amzn.to/3nZ5pH4 Plugable USB C to M.2 NVMe Tool-free Enclosure https://amzn.to/3lflV3L

BlockErupter Setup On A Raspberry Pi

Setup a USB Block Erupter on the Raspberry Pi with MinePeon

Insert your MinePeon SD Card

Connect the Rashberry Pi to a Powered USB Hub

Connect the Block Erupters into the Powered USB Hub

Boot the Raspberry Pi

Log into the Pi as user: minepeon with the password: peon

Type ifconfig and note the ip address for the device

On a separate computer open up your internet browser and point it to the ip of the raspberry pi. (ex: http://192.168.1.101)

Log into the Pi as user: minepeon with the password: peon

Click on the Pools tab at the top of the page

Delete all the info inside the boxes and replace it with your own info

Ex: stratum.d7.lt:3333 username: InstantSupp.777 password: 12345

Click Submit

The Block Erupter will now start mining

After a few minutes check the Graph page to make sure it is producing the info and your erupter is mining properly



Thanks for reading

Hardware that I use:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

Automatically Mount USB Drive on Raspberry Pi

RASPBERRY PI – Automatically Mount USB Drive

 

This guide explains how to get your External USB Drive to be recognized and automatically mounted using Raspberry Pi

Open a command prompt

Type
sudo bash and press enter

apt-get install usbmount and press enter

The software will now install

After it installs type
df -h and press enter

Make a note of the listed drives

Plug in your USB drive

Type
df -h and press enter

You will now see your USB Drive



Thanks for reading

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L