Pages: [1]   Go Down
Author Topic: franks arduino post about electronic gates  (Read 571 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi. Im trying to build a digital clock. Radio shack didnt have the ic's that i needed though.  So i was wondering if i could just make my arduino replace them it would be cool. Im new to arduino though and also to electronic gates. So can anyone help me turn my arduino into some different gates like. Nand nor and or ect. The project is here if interested :

Offline Offline
Edison Member
Karma: 17
Posts: 1216
RTFD (Datasheet in our case)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

x && y

where x and y are your 2 inputs will function just like a logic gate. Couldn't find the circuit, though... Can you please point us to it?

SF Bay Area (USA)
Online Online
Tesla Member
Karma: 133
Posts: 6753
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm not sure how to interpret your question.

Yes, you can build a digital clock using an Arduino.  It would (or could) share a lot of principles with the article your reference.  Essentially, you could replace each chip with a software subroutine:
void tick()
/* Execute this function every time we see a one-second clock tick */
   seconds = seconds + 1;   // count seconds like a 7490.
   if (seconds >= 10) {  // counter reached limit?
      seconds = 0;  // wrap
      tenseconds = tenseconds + 1;  // count 10s of seconds like a 7490
      if (tenseconds > 6) { // divide by 6
         tenseconds = 0;  // wrap
         minutes = minutes + 1 ;   // count minutes like a 7490
       // etc
   // We have the time in the appropriate digit variables.
   // convert to displayable form for 7-segment displays
   digit0 = digit2segments[seconds];
   digit1 = digit2segments[tenseconds];
   digit3 = digit2segments[minutes];
   // etc.
   updateDisplays();   // actually send out signals t the displays

No, you can't replace a handful of 7490s and 7447s with an Arduino directly; to start with there just aren't enough pins.

Pages: [1]   Go Up
Jump to: