Thingiverse
Motion sensing night light by SteveOst
by Thingiverse
Last crawled date: 2 years, 11 months ago
Motion sensing night light to light of bathroom
Arduino code:
//basic night light
// A0 pin for LDR
// A1 pin for motion sensor
// LED1 led output on pin 9
// LED2 led output on pin 10
int LED1 = 9;
int LED2 = 10;
void setup () {
// set up I/O
pinMode(A0,INPUT);
pinMode(A1,INPUT);
pinMode(LED1,OUTPUT);
pinMode(LED2,OUTPUT);
// for serial monitor - watch LRD and motion sensor values
Serial.begin(9600);
}
void loop(){
// read sensors
int lightValue = analogRead(A0);
int motionValue = analogRead(A1);
// set lights to off,for start up and after lights are turned on
// with motion
digitalWrite(LED1,LOW);
digitalWrite(LED2,LOW);
Serial.println("light");
Serial.print(lightValue);
// if it is dark then look for motion
if(lightValue>50)
{
// look for motion
if(motionValue>100)
{
// if motion, then turn on lights
digitalWrite(LED1,HIGH);
digitalWrite(LED2,HIGH);
delay(120000);
}
else
{
digitalWrite(LED1,LOW);
digitalWrite(LED2,LOW);
}
Serial.println("motion");
Serial.print(motionValue);
}
else
{
delay(300);
Arduino code:
//basic night light
// A0 pin for LDR
// A1 pin for motion sensor
// LED1 led output on pin 9
// LED2 led output on pin 10
int LED1 = 9;
int LED2 = 10;
void setup () {
// set up I/O
pinMode(A0,INPUT);
pinMode(A1,INPUT);
pinMode(LED1,OUTPUT);
pinMode(LED2,OUTPUT);
// for serial monitor - watch LRD and motion sensor values
Serial.begin(9600);
}
void loop(){
// read sensors
int lightValue = analogRead(A0);
int motionValue = analogRead(A1);
// set lights to off,for start up and after lights are turned on
// with motion
digitalWrite(LED1,LOW);
digitalWrite(LED2,LOW);
Serial.println("light");
Serial.print(lightValue);
// if it is dark then look for motion
if(lightValue>50)
{
// look for motion
if(motionValue>100)
{
// if motion, then turn on lights
digitalWrite(LED1,HIGH);
digitalWrite(LED2,HIGH);
delay(120000);
}
else
{
digitalWrite(LED1,LOW);
digitalWrite(LED2,LOW);
}
Serial.println("motion");
Serial.print(motionValue);
}
else
{
delay(300);
Similar models
thingiverse
free
Ban the spinners before they start talking to you. by WillemvD
...k with 120 ohm.
trouble with placing the batteries?
heat the pushpins with a soldering iron and push them slightly into the wall.
thingiverse
free
3DX TRAFFIC LIGHT
...digitalwrite(ledg, low);
digitalwrite(ledy, high);
delay(3000);
digitalwrite(ledr, high);
digitalwrite(ledy, low);
delay(1000);
}
thingiverse
free
LikeYouPartyPin by WillemvD
..., low); delay(200);digitalwrite(eye, high);delay(200);
digitalwrite(mouthlow, low); digitalwrite(mouthhigh, low); delay(500); }}}
thingiverse
free
Chess Clock by WillemvD
...
digitalwrite(pin4, high); digitalwrite(pin5, low); digitalwrite(pin6, low); digitalwrite(pin7, high); delay(t);
delay(speed);}
}
grabcad
free
Automatic Slide Gate Maket
...lwrite (dcl,low);
}
if(limitkanan==1 && hasilkiri==1){
digitalwrite (dcr,low);
digitalwrite (dcl,high);
}
}
thingiverse
free
ARMDUINO V1 Open-Source Robotic Arm! by Doctorfizzle
...urnval);
analogwrite(led1, turnval / 8 - 120);
analogwrite(led2, firstval / 8 - 120);
analogwrite(led3, secondval / 8 - 120);
}
thingiverse
free
A Tracking Platform for Astrophotography by alex16
...delay(dl);
digitalwrite( in1, low );
digitalwrite( in2, low );
digitalwrite( in3, high );
digitalwrite( in4, high );
delay(dl);
}
thingiverse
free
Wheel of Fortune by WillemvD
...yservo.write(pos); delay(15); }
delay(2000);
for (pos = 180; pos >= 0; pos -= 1) { myservo.write(pos); delay(15); }
}
}
thingiverse
free
Arduino Robot Avoid Obstacles by Paolo_Buono
...);
delay(4000);
case 4:
serial.println("left 4sec");
servoleft.write(60);
servoright.write(90);
delay(4000);
break;
}
}
thingiverse
free
Touch free straw dispenser by jackwidman
...al.println(distanceinch);
delay(dt);
if(distanceinch<=5.0){
myservo.write(90);
delay(500);
myservo.write(180);
delay(500);
}
}
Steveost
thingiverse
free
Nozzle Holder by SteveOst
...e holder by steveost
thingiverse
neatly store and organize your printer nozzles.
stores 0.2mm, 0.4mm, 0.6mm, 0.8mm, and 1.0mm.
thingiverse
free
Garden Stake by SteveOst
...steveost
thingiverse
designed this to hold down garden fence. handle help pull stakes out of soil easily. stakes are reusable.
thingiverse
free
Columbus Crew Coaster by SteveOst
...ee color changes, started with black, switched to white for letters, then back to black for background, then finished with yellow
thingiverse
free
Gift Wrap Hanger by SteveOst
...use screws/bolts that are flat on under side of head.
hung wrapping paper on otherwise unusable wall in closet under the stairs.
thingiverse
free
Pandemic Board Game Pieces Holders by SteveOst
...eost
thingiverse
organize your pandemic game pieces.
since quality is not critical, i printed with 0.6mm at 0.32mm layer height.
thingiverse
free
Intex hose adaptor by SteveOst
...
how to use:
remove gray screen
insert adaptor in port where plug goes.
attach vacuum hose.
will update photos when pool is up.
thingiverse
free
Drawer Pull Template by SteveOst
...ece at a time and used a square to keep assembly at 90 deg.
after i selected desired holes, i drilled holes bigger to fit my awl.
thingiverse
free
L Game by SteveOst
...eces nor move more than one spot.
the first person to get three in a row wins.
l game rules, vsauce2 does a great review of game.
Sensing
turbosquid
$20
sense
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3ddd
$1
Sense 90x90
...
3ddd
am-pm , душевая кабина
немецкая душевая кабина фирмы am-pm "sense 90x90"
3ddd
$1
Newform X-Sense
... 62530 , сметитель
смеситель newform серии x-sense.
арт. 62530
3ddd
free
Newform X-Sense
... 52525 , смеситель
смеситель newform серии x-sense.
арт. 62525
turbosquid
$10
Bench Sense
...y free 3d model bench sense for download as max, obj, and fbx on turbosquid: 3d models for games, architecture, videos. (1497952)
3ddd
$1
Cosmorelax. Кушетка Sense
...cosmo , кушетка
http://www.cosmorelax.ru/catalog/kushetki/kreslo_sense_relax_/
3ddd
$1
4 Senses Lounger
... шезлонг
расслабляющий шезлонгhttp://www.inviion.ru/relaksacija/4-senses-lounger/preimushchestva/
turbosquid
$9
Sense black coin
...d
royalty free 3d model sense black coin for download as max on turbosquid: 3d models for games, architecture, videos. (1555824)
turbosquid
$9
Sense gold coin
...id
royalty free 3d model sense gold coin for download as max on turbosquid: 3d models for games, architecture, videos. (1555819)
3ddd
$1
Кушетка Sense
... - нержавеющая сталь/stainless steel
обивка - войлок коричневый/felt brown
платформа: corona render
мах 2011, мах 2014, obj, 3ds.
Motion
3ddd
$1
Fabbian Motion
...motion
3ddd
fabbian , motion
светильник fabbian коллекция motion. текстурка в комплекте.
design_connected
$7
Motion Notion
...motion notion
designconnected
howard miller motion notion computer generated 3d model. designed by nelson, george.
turbosquid
$10
motion shark
...squid
royalty free 3d model motion shark for download as rib on turbosquid: 3d models for games, architecture, videos. (1261380)
3d_ocean
$6
Motion Set
...ng face and vertex, three file format are included,very useful for motion graphic artist , total poly 143.952 total vertex 79.952
3d_export
$10
Motion Tracker Aliens
...er out moving objects from stationary background and then displayed them on the monitor as a series of contours of probable loci.
3d_export
$6
motion stand for book and logo
...motion stand for book and logo
3dexport
motion stand for book and logo
turbosquid
$99
Planes of Motion Combo
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$50
Rotary-straight motion
...y-straight motion for download as 3ds, obj, fbx, 3dm, and skp on turbosquid: 3d models for games, architecture, videos. (1402602)
3d_export
$6
Reciprocating Motion
...#39;vinci's reciprocating motion contraption the model is used for picking up buckets of water from a well materials included
3d_export
$15
M314 Motion Tracker Aliens
...ng objects from stationary background and then displayed them on the m314's monitor as a series of contours of probable loci.
Night
3ddd
$1
Кровать Night-Night Riva 1920
...кровать night-night riva 1920
3ddd
riva
http://www.riva1920.it/it/prodotti/letti/night-night-262/
3ddd
$1
Night Stand
... night stand , прикроватная тумба
classical night stand
3d_export
$5
Night castle
...night castle
3dexport
night castle
3d_export
$5
night table
...night table
3dexport
night table
3d_export
$5
dragon night
...dragon night
3dexport
dragon night 3d model
3d_export
$5
Night city
...night city
3dexport
night city with roads and houses
turbosquid
$21
Night
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3d_export
$5
Foggy night
...foggy night
3dexport
move to a fabulous foggy night location.
3d_export
$5
King Of The Night
...king of the night
3dexport
king of the night. lord of the cold and the dead.
3ddd
$1
Night Stand
...night stand
3ddd
резьба , тумба
night stand for bedroom
Light
archibase_planet
free
Light
...light
archibase planet
lamp lighting light
light - s2 - 3d model for interior 3d visualization.
archibase_planet
free
Light
...light
archibase planet
light luminaire lighting
light l0465 - 3d model (*.gsm+*.3ds) for interior 3d visualization.
3d_export
$5
lighting
...lighting
3dexport
lighting
3d_export
$5
lighting
...lighting
3dexport
lighting in livingroom
turbosquid
$3
Lighting Tree with Lights
...d model lighting tree with lights for download as max and 3ds on turbosquid: 3d models for games, architecture, videos. (1585507)
archibase_planet
free
Light
...light
archibase planet
luster lighting solution
light - s - 3d model for interior 3d visualization.
archibase_planet
free
Light
...light
archibase planet
luster lamp lighting
light 1 - 3d model for interior 3d visualization.
archibase_planet
free
Lights
...lights
archibase planet
surgical lights surgical lamp
surgical lights (floor) - 3d model for interior 3d visualization.
archibase_planet
free
Light
...light
archibase planet
lighting luminaire candlelight
light l0463 - 3d model (*.gsm+*.3ds) for interior 3d visualization.
3d_export
$18
street light-lighting-light-xia bing
...
3dexport
street light-lighting-light-xia bing<br>max 2015 v-ray 3 max 2015<br>textures<br>all files in zip...