Category: RaspberryPi

  • Lidar Failing to Start – ROS2 and RaspberryPi

    Lidar Failing to Start – ROS2 and RaspberryPi

    Hi everyone, I’m messing around with a diff-drive robot and have been hitting an intermittent issue with my Lidar: This turned out to be a low power issue. The Pi’s voltage had been dropping to about 4.5v as my 12v battery grew a little flat. Recharging the battery immediately fixed the issue. For a more…

  • Wheel Going in the Wrong Direction – RVIZ2 and FoxGlove

    Wheel Going in the Wrong Direction – RVIZ2 and FoxGlove

    Hi everyone, I hope you’re having a good break! I’m currently following this tutorial and messing around with a diffdrive robot. After making a few changes I noticed that my simulations were playing up. Strangely, the robot itself was still working perfectly fine. The problem I was having was that even though my robot was…

  • RaspberryPi Camera not detected – Ubuntu 20.04.5 LTS

    RaspberryPi Camera not detected – Ubuntu 20.04.5 LTS

    Hi everyone, I ran into a bit of an issue with a RaspberryPi 4 running Ubuntu 20.04.5 this morning. Running vcgencmd get_camera should have returned supported=1 detected=1 but instead I was getting supported=0 detected=0. This was a bit of a hard one to track down with Google but I eventually came across a stackoverflow post…

  • Change i2c address of ina219

    Change i2c address of ina219

    Hi everyone, I wanted to use ina219 with pca9685 but they shared the same i2c address 0x4: 0. Luckily, there’s a fairly easy fix for this. All we need to do is solder two pins together. We’re going to bridge a0 and this will change our address to 0x41. In order to check these run…

  • A4988 Stepper motor RaspberryPi

    A4988 Stepper motor RaspberryPi

    We’re using a 42shd0034-20B Geetech stepping motor taken from a 3d printer: We’ll be driving it with an A4988 stepper motor controller. You can pick up five packs of these for less than $2 online – definitely worth having a few extras around: The datasheet is available here: https://www.pololu.com/file/download/A4988.pdf?file_id=0J450 The following diagram illustrates what we’ll…

  • AWS IoT – error in discovery certificate_verify_failed

    Hi everyone, I ran into the following error while using the AWS IoT python SDK: Error in discovery! Type: Error message: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:720) It turns out that this was because I was using the wrong root certificate. In the documentation there are five certificates listed: RSA 2048 bit key: VeriSign Class…

  • Update Wireless Info on Raspberry Pi

    Hi everyone, Just a quick post on how to configure wireless info on a raspberry pi. To start with, open the config file: sudo nano /etc/wpa_supplicant/wpa_supplicant.conf You can then add any number of connections to the file with varying priorities: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=AU network={ ssid=”Mobile Network” psk=”YOUR_PASSWORD” key_mgmt=WPA-PSK priority=2 } network={ ssid=”Home Network” psk=”YOUR_PASSWORD”…

  • Using INA219 (GY-219) with the Raspberry Pi

    Hi everyone, I’ve just setup an INA219B Voltage/Current sensor on my RaspberryPi. Just thought I’d link the tutorials and libraries I used – there’s a lot of really useful info out there. Install the following library via git: https://github.com/chrisb2/pi_ina219 sudo pip3 install pi-ina219 Follow this tutorial: https://www.rototron.info/raspberry-pi-ina219-tutorial/ Misc Notes Common ground is required Vin –…

  • Mini-360 DC-DC Buck Converter – Incorrect Voltage 10v Instead of 5v

    Hi everyone, I’ve been playing around with a few DC-DC buck converters similar to these ones: https://www.amazon.com.au/UEB-Power-Converter-Module-Supply/dp/B078CXHWXC/ref=sr_1_fkmr1_1?ie=UTF8&qid=1519030369&sr=8-1-fkmr1&keywords=mini+360+buck+converter I had expected 5v output from my 12v supply but when I hooked it up to a multimeter I found I was getting just over 10v. This would fry pretty much everything in my circuit so I was…

  • Duinotech Hall Effect Sensor with RaspberryPi

    Hi everyone, This is just a quick post to cover how the Duinotech hall effect sensor module (XC-4434) can be hooked up to a RaspberryPi. Sample Code The code below will output a zero when the sensor is activated by a magnet, otherwise a zero. import time import datetime import RPi.GPIO as GPIO # Define…

Create a website or blog at WordPress.com