Skip to content

Instantly share code, notes, and snippets.

2023-12-01T17:38:53.374Z   info   robot_server   web/web.go:597   serving   url https://pi5-main.n2qdsrpqxj.local.viam.cloud:8080   alt_url https://0.0.0.0:8080  
2023-12-01T17:38:53.365Z   info   robot_server   rpc/server.go:556   will run external signaling answerer   signaling_address app.viam.com:443   for_hosts [pi5-main.n2qdsrpqxj.viam.cloud]  
2023-12-01T17:38:49.295Z   info   robot_server   modmanager/manager.go:871   registering component from module   module viam_csi-cam   API rdk:component:camera   model viam:camera:csi-pi  
2023-12-01T17:38:49.122Z   info   robot_server.process.viam_csi-cam_/root/.viam/packages/.data/module/e76d1b3b-0468-4efd-bb7f-fb1d2b352fcb-csi-cam-0_3_0-linux-arm64/bin/viam-csi-latest-aarch64.AppImage.StdOut   pexec/managed_process.go:244   \_ registered model: viam:camera:csi-pi  
2023-12-01T17:38:49.121Z   info   robot_server.process.viam_csi-cam_/root/.viam/packages/.data/module/e76d1b3b-0468-4efd-bb7f-fb1d2b352fcb-csi-cam-0_3_0-linux-arm64/bin/viam-csi-latest-aarch64.AppIm
2023-12-01T17:10:00.898Z   error   robot_server.process.ilboud_picam2_/root/.viam/packages/.data/module/eb7f22ef-2bbc-45ac-9d70-72271d2fa7ae-picam2-0_0_9-linux-arm64/run.sh.StdErr   pexec/managed_process.go:242   \_ hint: See above for details.  
2023-12-01T17:10:00.898Z   error   robot_server.process.ilboud_picam2_/root/.viam/packages/.data/module/eb7f22ef-2bbc-45ac-9d70-72271d2fa7ae-picam2-0_0_9-linux-arm64/run.sh.StdErr   pexec/managed_process.go:242   \_ note: This is an issue with the package mentioned above, not pip.  
2023-12-01T17:10:00.898Z   error   robot_server.process.ilboud_picam2_/root/.viam/packages/.data/module/eb7f22ef-2bbc-45ac-9d70-72271d2fa7ae-picam2-0_0_9-linux-arm64/run.sh.StdErr   pexec/managed_process.go:242   \_  
2023-12-01T17:10:00.898Z   error   robot_server.process.ilboud_picam2_/root/.viam/packages/.data/module/eb7f22ef-2bbc-45ac-9d70-72271d2fa7ae-picam2-0_0_9-linux-arm64/run.sh.StdErr   pexec/managed_process.go:242   \_ See above for output.  
2023-12-01T17:10:00.898Z   error  
@danic85
danic85 / gist:99bfa7b20d5f5b4151bc04d03523af40
Last active November 30, 2023 23:00
Viam - Pi5 Camera Error Log with camera:csi
2023-11-30T22:56:53.854Z   error   robot_server.process.ilboud_picam2_/root/.viam/packages/.data/module/eb7f22ef-2bbc-45ac-9d70-72271d2fa7ae-picam2-0_0_9-linux-arm64/run.sh.StdErr   pexec/managed_process.go:242   \_ hint: See above for details.  
2023-11-30T22:56:53.854Z   error   robot_server.process.ilboud_picam2_/root/.viam/packages/.data/module/eb7f22ef-2bbc-45ac-9d70-72271d2fa7ae-picam2-0_0_9-linux-arm64/run.sh.StdErr   pexec/managed_process.go:242   \_ note: This is an issue with the package mentioned above, not pip.  
2023-11-30T22:56:53.854Z   error   robot_server.process.ilboud_picam2_/root/.viam/packages/.data/module/eb7f22ef-2bbc-45ac-9d70-72271d2fa7ae-picam2-0_0_9-linux-arm64/run.sh.StdErr   pexec/managed_process.go:242   \_  
2023-11-30T22:56:53.854Z   error   robot_server.process.ilboud_picam2_/root/.viam/packages/.data/module/eb7f22ef-2bbc-45ac-9d70-72271d2fa7ae-picam2-0_0_9-linux-arm64/run.sh.StdErr   pexec/managed_process.go:242   \_ See above for output.  
2023-11-30T22:56:53.854Z   error  
@danic85
danic85 / gist:5cb7e43c720e23db32aa77d8dd263d01
Created November 30, 2023 07:19
Viam - Pi 5 Camera Error Logs
2023-11-30T07:18:26.610Z   error   robot_server.rdk:component:camera/camera   resource/graph_node.go:223   resource build error: rpc error: code = Unavailable desc = error reading from server: EOF   resource rdk:component:camera/camera   model viam:camera:csi-pi  
2023-11-30T07:18:26.610Z   error   robot_server   modmanager/manager.go:620   module has unexpectedly exited, attempting to restart it   module viam_csi-cam-pi  
2023-11-30T07:18:26.478Z   error   robot_server.process.viam_csi-cam-pi_/root/.viam/packages/.data/module/e76d1b3b-0468-4efd-bb7f-fb1d2b352fcb-csi-cam-pi-0_3_0-linux-arm64/bin/viam-csi-latest-aarch64.AppImage.StdErr   pexec/managed_process.go:242   \_ Failed to start the pipeline  
2023-11-30T07:18:26.459Z   error   robot_server.process.viam_csi-cam-pi_/root/.viam/packages/.data/module/e76d1b3b-0468-4efd-bb7f-fb1d2b352fcb-csi-cam-pi-0_3_0-linux-arm64/bin/viam-csi-latest-aarch64.AppImage.StdErr   pexec/managed_process.go:242   \_ [8:23:37.657109219] [5436]  INFO Camera c
$ sudo gpioinfo
gpiochip0 - 32 lines:
line 0: "-" unused input active-high
line 1: "2712_BOOT_CS_N" "spi10 CS0" output active-low [used]
line 2: "2712_BOOT_MISO" unused input active-high
line 3: "2712_BOOT_MOSI" unused input active-high
line 4: "2712_BOOT_SCLK" unused input active-high
line 5: "-" unused input active-high
line 6: "-" unused input active-high
line 7: "-" unused input active-high
2023-11-25T16:43:08.623Z   error   robot_server   impl/resource_manager.go:472   configuration error: reached max of 5 configuration attempts for rdk:component:board/local  
2023-11-25T16:43:03.624Z   error   robot_server   impl/resource_manager.go:621   error building resource   resource rdk:component:board/local   model rdk:builtin:pi   error error: PI_INIT_FAILED: gpioInitialise failed  
2023-11-25T16:42:58.624Z   error   robot_server   impl/resource_manager.go:621   error building resource   resource rdk:component:board/local   model rdk:builtin:pi   error error: PI_INIT_FAILED: gpioInitialise failed  
2023-11-25T16:42:53.124Z   error   robot_server   impl/resource_manager.go:621   error building resource   resource rdk:component:board/local   model rdk:builtin:pi   error error: PI_INIT_FAILED: gpioInitialise failed  
2023-11-25T16:42:48.125Z   error   robot_server   impl/resource_manager.go:621   error building resource   resource rdk:component:board/local   model rdk:builtin:pi   error error: PI_INIT_FA
@danic85
danic85 / RobotLeg.ino
Created February 26, 2023 19:07
Test script for robotic legs
/*
* ThreeServos.cpp
*
* Shows smooth movement from one servo position to another for 3 servos synchronously.
* Demonstrates the use of ServoEasingArray and ServoEasingNextPositionArray.
*
* Copyright (C) 2019-2022 Armin Joachimsmeyer
* armin.joachimsmeyer@gmail.com
*
* This file is part of ServoEasing https://github.com/ArminJo/ServoEasing.
@danic85
danic85 / docker-ros-ref-mac.md
Last active January 23, 2023 20:52
ROS2 on MacOS reference commands
@danic85
danic85 / arduino-smart-servo
Created September 10, 2021 19:33
Arduino Smart Servo (continuous servo voltage monitor)
// ---------------------------------------------------------------- //
// Arduino Smart Servo (continuous servo voltage monitor)
// Uses a uses a shunt resistor to create a voltage divider that the arduino can monitor.
// When the voltage passes a threshold the servo pauses for a second before continuing.
// https://www.instagram.com/p/CTXWAH9jmJE/
// Tested on September 2020
// Author: Dan Nicholson (github.com/danic85)
// ---------------------------------------------------------------- //
#include <Servo.h>
@danic85
danic85 / arduino-watch-frog-sketch
Last active September 10, 2021 19:18
Arduino Watch Frog (HC-SR04 door distance alarm)
// ---------------------------------------------------------------- //
// Arduino Watch Frog (HC-SR04 door distance alarm)
// Place with sensor facing a closed door and then attach power.
// Alarm will sound if distance to door changes in either direction
// beyond the THRESHOLD. Alarm will not stop until power is disconnected.
// Tested on 10 September 2020
// Author: Dan Nicholson (github.com/danic85)
// ---------------------------------------------------------------- //
#define echoPin 7 // Echo of HC-SR04