Keshav Kai S. Krishna
Published © GPL3+

Robot Single Cell Life Form (Initial Blinky)

Applying an analogy of evolution to the building of more and more complex robots. Starting with a simple blinky project

BeginnerShowcase (no instructions)30 minutes316
Robot Single Cell Life Form (Initial Blinky)

Things used in this project

Hardware components

Breadboard (generic)
Breadboard (generic)
×1
LED (generic)
LED (generic)
×1
Through Hole Resistor, 820 ohm
Through Hole Resistor, 820 ohm
×1
SparkFun MicroView - OLED Arduino Module
SparkFun MicroView - OLED Arduino Module
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Breadboard, 170 Pin
Breadboard, 170 Pin

Story

Read more

Code

Simple blinking cell

C/C++
This is c code I used to blink a circle on the screen of a MicroView Arduino and an LED connected to pin 4.
#include <MicroView.h>
/*
	MicroView Blink
	Draw a circle for one second, then off for one second, repeatedly.
  Also flash an LED connected to pin A3 at the same time.
 
	This example code is in the public domain.
 */

int LED = A3;        // declare LED as pin A3 of MicroView

 
// the setup routine runs once when you press reset:
void setup() {                
	uView.begin();
	uView.clear(PAGE);
  pinMode(LED, OUTPUT);  // set LED pin as OUTPUT
}

// the loop routine runs over and over again forever:
void loop() {
	uView.circleFill(32,24,10,WHITE,NORM);
	uView.display();
  digitalWrite(LED, HIGH);  // set LED pin HIGH voltage, LED will be on
	delay(1000);               // wait for a second

	uView.circleFill(32,24,10,BLACK,NORM);  
	uView.display();
  digitalWrite(LED, LOW);    // set LED pin LOW voltage, LED will be off
	delay(1000);               // wait for a second
}

Credits

Keshav Kai S. Krishna

Keshav Kai S. Krishna

2 projects • 2 followers
Just trying to make the world I want to live in. A world with giant robot creatures, ghosts in the shell and living sustainably.

Comments