Skip to content

Instantly share code, notes, and snippets.

View chepo92's full-sized avatar

Axel Sepúlveda chepo92

View GitHub Profile
@thinkyhead
thinkyhead / Ambidextrous-SCARA.scad
Created September 5, 2016 04:25
Ambidextrous SCARA Kinematics
/**
* Ambidextrous SCARA Kinematics with optimized mathematics
*/
// Lengths of the arm segments
// If the lengths are the same the maths can be optimized
arm1_length = 5;
arm2_length = 3;
arm_sum = arm1_length + arm2_length;
@brandoncurtis
brandoncurtis / AnalogReadSerial.ino
Last active January 29, 2024 20:47
Realtime Data Acquisition and Plotting with Arduino and Python
/*
AnalogReadSerial
Reads an analog input on pin 0, prints the result to the serial monitor.
Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.
This example code is in the public domain.
Upload this to the Arduino using the Arduino IDE!
*/
@openp2pdesign
openp2pdesign / kivy-serialdata.py
Last active November 29, 2023 12:13
Drawing serial data with Kivy (Python)
# -*- coding: utf8 -*-
from kivy.app import App
from kivy.uix.floatlayout import FloatLayout
from kivy.graphics import Line
from kivy.uix.label import Label
from kivy.core.window import Window
from kivy.clock import Clock
import serial
@electronut
electronut / ldr.py
Created May 4, 2014 06:14
Display analog data from Arduino using Python (matplotlib animation)
"""
ldr.py
Display analog data from Arduino using Python (matplotlib)
Author: Mahesh Venkitachalam
Website: electronut.in
"""
import sys, serial, argparse
@electronut
electronut / analog-plot.ino
Created May 24, 2013 07:45
Read analog values from A0 and A1 and print them to serial port.
// analog-plot
//
// Read analog values from A0 and A1 and print them to serial port.
//
// electronut.in
#include "Arduino.h"
void setup()
{
@laszlomiklosik
laszlomiklosik / gist:2230082
Last active October 18, 2021 17:22
Sharing your Git repository using Git daemon
Sharing your Git repository using Git daemon (for pull & push)
1. In a git repository run the following command to share it in read-only mode (pull only):
git daemon --export-all --base-path=.
(from the folder with the project to be shared)
and then clone directly, like: