Skip to content

Instantly share code, notes, and snippets.

View dmalawey's full-sized avatar
💭
performing kaizen

David dmalawey

💭
performing kaizen
View GitHub Profile
@dmalawey
dmalawey / myEmbeddedLinuxNotes.md
Last active June 21, 2021 21:20
David's Notes for Linux & Pi Setup, Installations, etc.

Linux & Pi Short Notes:

This document is for all steps getting started with an embedded Linux Machine and specifically addressing the path for SCUTTLE developers who lack formal training in computer science such as myself. -DM

Syntax guide for formatting in markdown

I am using markdownguide.org for formatting this document.

Wifi setup (Option 1)

  1. SSH must be enabled on the Pi. Go to the raspi SSH documentation and use STEP 3 to enable SSH directly from the SD card.

  2. Create the wpa_supplicant.conf file and configure it to give WiFi access to the Pi. Use this method when you have no monitor.

@dmalawey
dmalawey / vscode_config_SFTP.json
Created September 9, 2020 06:38
vscode configuration for pi SFTP over wifi
{
"name": "SCUTTLE",
"host": "192.168.1.8",
"protocol": "sftp",
"port": 22,
"username": "pi",
"password": "raspberry"
"remotePath": "/home",
"uploadOnSave": true
}
@dmalawey
dmalawey / noderedExtractTwoValuesFromObject
Created September 9, 2020 07:26
make a function in nodered to extract individual axes from the gamepad
[{"id":"4a052b50.075214","type":"tab","label":"PlotGP","disabled":false,"info":""},{"id":"350633a1.11bc9c","type":"ui_gauge","z":"4a052b50.075214","name":"","group":"341ef7b5.bb9218","order":1,"width":"5","height":"5","gtype":"gage","title":"Axis0 (theta dot)","label":"percent","format":"{{value}}","min":"-100","max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":460,"y":280,"wires":[]},{"id":"1cbd9feb.395ee","type":"file in","z":"4a052b50.075214","name":"read uFile.txt","filename":"/tmp/uFile.txt","format":"utf8","chunk":false,"sendError":false,"encoding":"none","x":130,"y":120,"wires":[["7d96ee41.f7f52","9f412f87.46433"]]},{"id":"7d96ee41.f7f52","type":"csv","z":"4a052b50.075214","name":"parse values","sep":",","hdrin":"","hdrout":"none","multi":"one","ret":"\\n","temp":"GP_tdot, GP_xdot","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":190,"y":180,"wires":[["2c3f9ccf.818b84","d7dc5615.75ce08","99988631.c44068"]]},{"id":"2c3f9ccf.818b84","type":"debug
@dmalawey
dmalawey / wpa_supplicant.conf
Last active February 11, 2022 18:14
wpa supplicant example
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
# First network to search for
network={
ssid="your_ssid"
psk="your_password"
}

Start the nodeRed installation:

Running Node-RED update for user pi at /home/pi on raspbian

This can take 20-30 minutes on the slower Pi versions - please wait.

Stop Node-RED                       ✔
Remove old version of Node-RED      ✔
Remove old version of Node.js ✔
@dmalawey
dmalawey / PersonalDataAgreements.md
Last active June 18, 2021 15:49
collection of data privacy policies and user agreements.

Texas A&M Member Data Use agreement

The Texas A&M System Member Data Use Agreement Revised: May 18, 2016

Please read the following agreement carefully and completely before agreeing

This Agreement applies to any user of Texas A&M System member institution (hereafter referred to as “institution”) Information Resources. The purpose of this Agreement is to inform you of your principal obligations concerning the use of institution Information Resources, and to document your Agreement to abide by these obligations.

"Information Resources" has the meaning defined in Texas Government Code § 2054.003(7): “. . .the procedures, equipment, and software that are employed, designed, built, operated, and maintained to collect, record, process, store, retrieve, display, and transmit information, and associated personnel including consultants and contractors.” Additionally, data impacted by the aforementioned is included as Information Resources.

@dmalawey
dmalawey / SCUTTLE CAD v2.3 log.md
Last active February 10, 2021 16:40
my log of changes to be released with latest CAD model for SCUTTLE

Updates from V2.3 to V2.4 (not yet released)

  • wheel bracket RH with properly oriented scuttle logo
  • wheel brackets M3 holes increased to 3.3mm diameter for improved thread clearance and flush fit
  • battery pack - add compliant fitment for Anderson connectors
  • encoders - add labels to pins
  • encoder bracket - increase clearance so encoder board always fits between datum bumps
  • battery bracket thin wall increased (1.1mm to 1.5) for strength

Updates from V2.2 to V2.3 (released 2020.11)

  • Change CPU to Raspberry Pi (beaglebone is still compatible)
@dmalawey
dmalawey / 2020.12 servo hat test
Created December 3, 2020 03:26
2020.12 Servo Hat Test
Servo hat from Cytron.io
Input voltage at screw terminals to test voltage available at A) servo power rail and B) raspi 5v pins
In(v) Out (v)
5.90 0.01
6.00 5.2~5.1 fluctuating
6.10 5.2v
6.50 5.1v
11.90 5.1v
@dmalawey
dmalawey / openProjects.md
Last active July 6, 2022 21:46
Benchmark Open Source Project Websites

Opensource Projects

@dmalawey
dmalawey / flow_mqtt_dashboard_v1
Last active June 26, 2021 20:28
flow for realtime sensor monitoring
[
{
"id": "3d6bb3f8.1bf26c",
"type": "ui_chart",
"z": "dadfb2cd.6a075",
"name": "",
"group": "56fad44.f0fd52c",
"order": 1,
"width": 8,
"height": 6,