Skip to content

Instantly share code, notes, and snippets.

@neosarchizo
neosarchizo / control_KP39EM2_006_Stepper_Motor_by_Arduino.md
Last active September 25, 2015 14:23
Control KP39EM2-006 Stepper Motor by Arduino

Control KP39EM2-006 Stepper Motor by Arduino

This post for Kiheon, Han.

Schematic

Imgur

Arduino

@neosarchizo
neosarchizo / control_light.ino
Created October 11, 2016 06:02
[자유학기제 - 아두이노] LED 밝기 조절하기
int light = 0;
void setup() {}
void loop() {
analogWrite(9, light);
light = light + 1;
if(light > 255){
light = 0;
@neosarchizo
neosarchizo / my-programs-in-mac-book.md
Last active October 12, 2017 12:55
My programs in mac book

My programs in mac book

I wrote this post because I will remember applications to install after format mac book.

  • Chrome
  • Adobe Air : This must be installed before installing Adobe CC.
  • Adobe CC : This must be installed before upgrading el capitan.
  • Java
  • N File Downloader
  • Alzip
  • Paragon NTFS
@neosarchizo
neosarchizo / my_home_th_logger.ino
Last active July 26, 2018 10:35
My home TH logger
#define BLYNK_PRINT Serial
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Wire.h>
#include "Adafruit_SHT31.h"
char auth[] = "YourToken";
char ssid[] = "YourWiFiName";
@neosarchizo
neosarchizo / pm2008_led.ino
Created December 7, 2018 01:23
[디바이스마트 매거진] PM2008 LED 모니터
#include <pm2008_i2c.h>
PM2008_I2C pm2008_i2c;
void setup() {
pm2008_i2c.begin();
Serial.begin(9600);
pm2008_i2c.command();
delay(1000);
@neosarchizo
neosarchizo / get-docker.sh
Created March 20, 2019 07:50
get-docker.sh for Raspberry Pi Zero W
#!/bin/sh
set -e
# This script is meant for quick & easy install via:
# $ curl -fsSL https://get.docker.com -o get-docker.sh
# $ sh get-docker.sh
#
# For test builds (ie. release candidates):
# $ curl -fsSL https://test.docker.com -o test-docker.sh
# $ sh test-docker.sh
@neosarchizo
neosarchizo / simple_monitor.ino
Created September 2, 2019 07:04
[새로운 시작][아두이노] PM2008 간단 모니터
#include <pm2008_i2c.h>
PM2008_I2C pm2008_i2c;
#define RED 4
#define YELLOW 5
#define GREEN 6
#define BLUE 7
void setup() {
@neosarchizo
neosarchizo / 3v_uart_test.ino
Last active October 3, 2019 07:49
[디바이스마트] USB to UART TTL 테스트 코드
void setup() {
Serial1.begin(9600);
}
void loop() {
Serial1.println("Hello world");
if(Serial1.available()){
Serial1.print("Reply) ");
@neosarchizo
neosarchizo / serial_plotter_multiple.ino
Created October 4, 2019 04:30
[디바이스마트] 아두이노 시리얼 플로터
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.print(1); Serial.print("\t"); // space, tab, comma
Serial.print(2); Serial.print("\t");
Serial.print(3);
Serial.println();
}
@neosarchizo
neosarchizo / rs485_test.ino
Created October 30, 2019 13:03
[디바이스마트] RS485 테스트
#include <SoftwareSerial.h>
#define R 9
#define G 10
#define B 11
SoftwareSerial mySerial(2, 3);
int pState = HIGH;
byte id = 0;