This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Program: ttgo_adafruit_server.ino | |
* a simple messaging server(sender)with the RH_RF95 class. | |
*/ | |
#include <SPI.h> | |
#include <RH_RF95.h> | |
//#define RFM95_CS 2 // "E" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ttgo_RH_RF95_init This program is used to test getting the LoRa service to initialize on a TTGO ESP32 LoRa board | |
ref: https://microcontrollerslab.com/ttgo-lora32-sx1276-oled-board-pinout-getting-started-with-arduino-ide/ | |
*/ | |
#include <SPI.h> | |
#include <RH_RF95.h> | |
#include <RHReliableDatagram.h> | |
// LoRa pins for TTGO Semtech SX1276 | |
#define LORA_MISO 19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
steer_motor_v3.cpp | |
Subscribes to cmd_vel | |
Sends commands to motor controller connected to Teensy using commands digitalWrite(DIRPin, HIGH); | |
*/ | |
#include "ros.h" | |
#include "std_msgs/UInt16.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Test program for a MAP function aimed at testing code for a steering module that will be used to turn a steering servo from hard left to hard right | |
based on the steering angle provided which will generally be between .82 and -.76 which has to be mapped to a range of -14,000 and 13,500 which are | |
the values from the steering angle sensor. | |
I initially tested this on an Arduino Nano Every board | |
if(angular_vel_z > 0) | |
{ | |
steering_angle_target = angular_vel_z*(steer_left_max - steer_straight) / 1+steer_straight; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Test program for a MAP function aimed at testing code for a steering module that will be used to turn a steering servo from hard left to hard right | |
based on the steering angle provided which will generally be between .82 and -.76 which has to be mapped to a range of -14,000 and 13,500 which are | |
the values from the steering angle sensor. | |
*/ | |
#include <Arduino.h> | |
// steering value constants | |
const int steer_straight = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This program is designed to run on a Teensy that is connected to a SuperServo to make the Super Servo ROS enabled and control | |
the transmission of a lawn tractor. It is started in a launch file as one of multiple nodes with the command: | |
<node ns="transmission_teensy" name="transmission_cntrl" pkg="rosserial_python" type="serial_node.py" args="/dev/transmission_control" output="screen" /> | |
Overview: | |
subscribe to a target speed in cmd_vel format (i.e. cmd_vel.linear.x) | |
subscribe to actual speed from the rear wheels | |
adjust servo position to match actual speed to target speed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Similar posts https://github.com/ethereum-mining/ethminer/issues/1966 | |
What is not clear is the fix. There is a mention, "You can continue using ethminer if you can build the binary on your own | |
See instructions here https://github.com/ethereum-mining/ethminer#build" | |
Download ethminer-0.18.0-cuda-8-linux-x86_64.tar.gz | |
Are these correct? (from: https://github.com/ethereum-mining/ethminer/blob/master/docs/BUILD.md) | |
$ sudo apt install libdbus-1-dev | |
$ sudo apt-get install mesa-common-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
import tkinter as tk | |
from tkinter import ttk | |
import subprocess | |
import time | |
''' | |
issues: | |
- speed up the login process by looking for the $ which shows the login has completed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter as tk | |
from tkinter import ttk | |
import rospy | |
from std_msgs.msg import Int16 | |
""" | |
Simple Python subscriber to a ROS topic (/front_angle_low_res) which in my case is outputing an integer result | |
and displays the result in a tkinter window | |
credit: https://www.pythontutorial.net/tkinter/tkinter-after/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Using the BNO080 IMU | |
Example : Euler Angles | |
By: Paul Clark | |
Date: April 28th, 2020 | |
Based on: Example1-RotationVector | |
By: Nathan Seidle | |
SparkFun Electronics |