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
/** | |
* Adventures in Science: Fred Bot | |
* SparkFun Electronics | |
* Author: M. Hord (October 8, 2013) | |
* Modified by: B. Huang (October 31, 2014) | |
* Modified by: Shawn Hymel (July 21, 2017) | |
* | |
* Use two magnetic encoders on Fred's motor shafts (48:1 | |
* gearbox, 60mm wheels) to make him move in a straight line for | |
* 1m. |
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 device_patches # Device specific patches for Jetson Nano (needs to be before importing cv2) | |
import cv2 | |
import os | |
import sys, getopt | |
import numpy as np | |
from edge_impulse_linux.image import ImageImpulseRunner |
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
/** | |
* GridEye LED Array Demo | |
* Author: Shawn Hymel (SparkFun Electronics) | |
* Date: May 1, 2018 | |
* | |
* Displays a heat map of what the GridEye sees (8x8 pixels). | |
* | |
* Required Components | |
* - Arduino: https://www.sparkfun.com/products/13975 | |
* - Qwiic Shield: https://www.sparkfun.com/products/14352 |
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
/** | |
* Magic Wand Inference Demo | |
* | |
* Attach a button to pin 2. Press button to start collection. Raw data will be | |
* collected and fed to the impulse for inference. Inference results are printed | |
* to the serial terminal. | |
* | |
* Author: Shawn Hymel (EdgeImpulse, Inc.) | |
* Date: October 10, 2022 | |
* License: Apache-2.0 (apache.org/licenses/LICENSE-2.0) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# TFLite quantized inference example | |
# | |
# Based on: | |
# https://www.tensorflow.org/lite/performance/post_training_integer_quant | |
# https://www.tensorflow.org/lite/api_docs/java/org/tensorflow/lite/Tensor.QuantizationParams | |
import numpy as np | |
import tensorflow as tf | |
# Location of tflite model file (float32 or int8 quantized) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/** | |
* Two Channel Receiver | |
* Author: Shawn Hymel (SparkFun Electronics) | |
* Date: Aug 24, 2017 | |
* | |
* Connect a TB6612FNG and RC (PWM) receiver to the Arduino. | |
* Mixes two channels for arcade drive. | |
* | |
* This code is beerware; if you see me (or any other SparkFun | |
* employee) at the local, and you've found our code helpful, |
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
#include <WiFi.h> | |
#include <SPIFFS.h> | |
#include <ESPAsyncWebServer.h> | |
#include <WebSocketsServer.h> | |
// Constants | |
const char *ssid = "ESP32-AP"; | |
const char *password = "LetMeInPlz"; | |
const char *msg_toggle_led = "toggleLED"; | |
const char *msg_get_led = "getLEDState"; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder