Pages: 1 [2]   Go Down
Author Topic: One more knight rider project - My first  (Read 1704 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 146
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
if (simplescan == HIGH )
 {
   if (scan1 == HIGH) kitt2008scan (time);
   if (scan2 == HIGH) knight_rider_two_thousand (time);
   if (scan3 == HIGH) four_groups_blink_twice (time);
   if (scan4 == HIGH) bar_blink_twice (time);
   if (scan5 == HIGH) bars_blink_twice (time);
   if (scan6 == HIGH) all_high ();
   if (scan7 == HIGH) kitt2008scan (time);

but it never goes into the if
i have conect the analog 0 and analog 8 with the 5v

Code:
//********** i/o scan modes on analog inputs **********
 int scan1 = (8+54) ;
 int scan2 = (9+54);
 int scan3 = (10+54);
 int scan4 = (11+54);
 int scan5 = (12+54);
 int scan6 = (13+54);
 int scan7 = (14+54);
 



 //******************** inputs as i/o for the scan mode ********************
int simplescan = (0+54) ; // i/o switch for simple scann
int sensorenable = (1+54) ; // i/o switch for voice scan
int lightenable= (2+54) ; // i/o switch for light scan
int motionenable = (3+54) ; // i/o switch for motion enable scan

does this working to the arduino mega

the 54+pin
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 146
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i found one more mistake

 if (digitalRead(scan2)== HIGH )  digitalWrite (ledPin,HIGH);

if the digitalread of the button in HIGH

Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 146
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

[media]http://www.youtube.com/watch?v=PGVv9TrGBeo[/media]

This was my first test with arduino and my project

i dont have all the equipment yet

i am still waititng the leds and the transistors

the project will totaly have 92 channels

46 in each bar

it would be able to work as an vu meter also

a temperature meter

i light meter

a motion detector

-----------

i found some t10 led in the garage
and i couldnt wait the led to test it

this was the leds from channel 8 to channel 22

so the paterns are not show corectly

the speed is controlled by a rotary switch but i dont have it yet

the patterns are also controlled by a rotary switch

the usb cable was only for power not data
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 146
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

[media]http://www.youtube.com/watch?v=d3RwY2-AjxE[/media]


vu meter with a pc microphone
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 146
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

[media]http://www.youtube.com/watch?v=p4KCEE3yFWg[/media]

and

[media]http://www.youtube.com/watch?v=3mdG6pUF-1o[/media]

Logged

Pages: 1 [2]   Go Up
Jump to: