Shahariar
Published © TAPR-OHL

Arduino: Multipurpose IoT Micro Computer

A multipurpose, Sensor Enriched, Web Connected, Portable Powered, Arduino/AVR based Machine capable of Doing many things!

IntermediateShowcase (no instructions)14 hours2,670
Arduino: Multipurpose IoT Micro Computer

Things used in this project

Story

Read more

Custom parts and enclosures

Arduino Codes

Schematics

Temporary Schematics

Code

Codes

Arduino
Its JoyBoy
#include <Adafruit_NeoPixel.h>
#include "U8glib.h"

#define RGBPIN 13 // Hardwired, dont change
#define RELAY 12 // Hardwired, dont change
#define BUZZER 11 // Hardwired, dont change
#define V_MOTOR 9 // Hardwired, dont change

float volt=0.0;
float light=0.0;
float temperature=0.0;
Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, RGBPIN, NEO_GRB + NEO_KHZ800);
uint8_t draw_state = 0;

uint8_t S1=1;
uint8_t S2=1;
uint8_t x=0;
uint8_t y=0;
  
//SSD1306 oled waveshare(clk,din,cs,d/c,res);
// THIS FOR WAVESHARE
U8GLIB_SSD1306_128X64 u8g(7, 8, 6, 5,4); 
//   u8g.setRot180();

void setup() {
  button_init();
  relay_init();
  sound_init();
  V_motor_init();
  adc_init();
  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
    u8g.setRot180();

}

void loop() {
/*  colorWipe(strip.Color(0, 0, 0),100);
   voltage();
  
 delay(2000);
 lux();
 delay(2000);
 
 temp();
 
 delay(2000);*/
   u8g.firstPage();  
  do {
    draw_image();
  } while( u8g.nextPage() );

 
}

Credits

Shahariar

Shahariar

71 projects • 260 followers
"What Kills a 'Great life' is a 'Good Life', which is Living a Life Inside While Loop"

Comments