Show Posts
Pages: [1] 2 3
1  Using Arduino / General Electronics / Re: Newbie question on designing your own 'board' instead of using wires on: January 09, 2013, 02:23:38 pm
So wiring is completed and following the instructions I'm about ready to create Gerber files now. Is there any other check except checking the design rules and verifying everything manually 10 times? smiley
2  Using Arduino / General Electronics / Re: Newbie question on designing your own 'board' instead of using wires on: January 08, 2013, 02:44:21 pm
Thanks CrossRoads, it wasn't correct. All connections look fine now. I found a good tutorial here: to turn it in a PCB
3  Using Arduino / General Electronics / Re: Newbie question on designing your own 'board' instead of using wires on: January 08, 2013, 02:27:50 pm
I changed all wires to Net but that didn't solve this issue. I than replaced the resistor by another type and now they are linked when I move them. Thanks though for the idea!

So is the best next step using that button or should I start from scratch?
4  Using Arduino / General Electronics / Re: Newbie question on designing your own 'board' instead of using wires on: January 08, 2013, 11:21:42 am
So is using the button create PCB the correct next step or should I start from scratch?

I used this button to test and this surprised me: looking at my schematic you can see this:


But when I used the PCB button you can see that only these wires are not connected (on the left side, PUSHBUTTONSREAD):


The resistors are also missing here.

Thanks
5  Using Arduino / General Electronics / Re: Newbie question on designing your own 'board' instead of using wires on: January 07, 2013, 05:46:51 pm
Thanks for that, I updated it with juctions. That was a great tip!

6  Using Arduino / General Electronics / Re: Newbie question on designing your own 'board' instead of using wires on: January 07, 2013, 05:10:47 pm
So in the mean time I dumped expresssch because I got the impression that I would get stuck and should go a bit more advanced so I started using Eagle.

I redid the scheme here:


There is a button board I noticed, can I just use this (items won't be in a nice order) or is it better to restart to create a board? Can wires cross, I guess not?

Thanks!
7  Using Arduino / Project Guidance / Re: Arduino hangs? on: January 04, 2013, 10:38:35 am
Thanks, but I can't add any serial output as there is no way to attach it at the moment. It is a standalone situation with no breakout for USB.

I added a 2nd capacitor, getting my hopes up!
8  Using Arduino / Project Guidance / Re: Arduino hangs? on: January 04, 2013, 05:59:30 am
The code is too simple for memory writing I believe. Please have a look below. I'm going to add a second 100uF capacitator today.

Thanks for any ideas!

Code:
#include <LedControl.h>
#include <Wire.h>
#include <DS1307.h>
int buttonMinUpdate = 0, buttonHourUpdate = 0;   
char dateTime[22];
int minuteNow, minuteOld = 0;
int RTCValues[7], i = 0, year, month, dayOfMonth, dayOfWeek, hour, minute, second, intStatus = 1, oldStatus = 1;
const int buttonPinMinute = 3, buttonPinHour = 4, buttonShutdown = 5;

// inputs: DIN pin, CLK pin, LOAD pin. number of chips
LedControl mydisplay = LedControl(9, 10, 11, 2);


void setup()
{
 //setTime();
  DS1307.begin();
  pinMode(buttonPinMinute, INPUT);
  pinMode(buttonPinHour, INPUT);
  pinMode(buttonShutdown, INPUT);   
  intStatus = digitalRead(buttonShutdown);
  if(intStatus == 0)
  {
     mydisplay.shutdown(0, false);  // turns on display
     mydisplay.shutdown(1, false);  // turns on display
  }
  else
  {
    mydisplay.shutdown(0, true);  // turns on display
    mydisplay.shutdown(1, true);  // turns on display
  }
  oldStatus = intStatus;
  mydisplay.setIntensity(0, 15); // 15 = brightest
  mydisplay.setIntensity(1, 15); // 15 = brightest
}

void loop()
{
  DS1307.getDate(RTCValues);
  buttonMinUpdate = digitalRead(buttonPinMinute);
  buttonHourUpdate = digitalRead(buttonPinHour);
  sprintf(dateTime, "20%02d-%02d-%02d %02d:%02d:%02d", RTCValues[0], RTCValues[1], RTCValues[2], RTCValues[4], RTCValues[5], RTCValues[6]);       
  minuteNow = RTCValues[5];
  intStatus = digitalRead(buttonShutdown);
  if(oldStatus != intStatus)
   {
       oldStatus = intStatus;
      if(intStatus == 0)
      {
         mydisplay.shutdown(0, false);  // turns on display
         mydisplay.shutdown(1, false);  // turns on display
      }
      else
      {
        mydisplay.shutdown(0, true);  // turns on display
        mydisplay.shutdown(1, true);  // turns on display
      }
   }

  if(buttonMinUpdate == 0)
  {
    updateTimeMin();
  }
  if(buttonHourUpdate == 0)
  {
    updateTimeHour();
  }   
  if(minuteNow != minuteOld)
  {
      minuteOld = minuteNow;
      VisualizeTime();
  }

  delay(750);
}

void VisualizeTime()
{
    mydisplay.clearDisplay(0);
    mydisplay.clearDisplay(1);
    enableHetIs();
    int intMinutes = RTCValues[5];
    int intExtraMin = intMinutes % 5;
    enableMinutes(intExtraMin);
    int intFunction = RTCValues[5] / 5;
    int intHour = RTCValues[4];
    if(intFunction >= 4)
    {
      intHour++;
    }
     enableFunction(intFunction);
   
    enableHour(intHour);
}

void enableHour(int intHour)
{
  while(intHour >= 12)
  {
     if(intHour >= 12)
     {
      intHour -= 12;
     }
  }
   switch (intHour)
   {
    case 0:   
      mydisplay.setLed(0, 0, 6, true);
      mydisplay.setLed(0, 1, 6, true);
      mydisplay.setLed(0, 2, 6, true);
      mydisplay.setLed(0, 3, 6, true);
      mydisplay.setLed(0, 4, 6, true);
      mydisplay.setLed(0, 5, 6, true);
      break;
    case 1:   
      mydisplay.setLed(1, 4, 5, true);
      mydisplay.setLed(1, 5, 5, true);
      mydisplay.setLed(1, 6, 5, true);
      break;
   }
}

void enableHetIs()
{
   mydisplay.setLed(1, 4, 0, true);
   mydisplay.setLed(1, 5, 0, true);   
   mydisplay.setLed(1, 6, 0, true);
   
   mydisplay.setLed(0, 6, 0, true);
   mydisplay.setLed(0, 5, 0, true);   
}

void enableMinutes(int intExtraMin)
{
  //there is no break in thise case intentionally
  switch (intExtraMin)
   {
    case 4:   
      mydisplay.setLed(1, 2, 4, true);
    case 3:   
      mydisplay.setLed(1, 2, 3, true);
    case 2:   
      mydisplay.setLed(1, 3, 4, true);
    case 1:   
      mydisplay.setLed(1, 3, 3, true);
      break;
   }
}

void enableFunction(int intFunction)
{
  switch (intFunction)
   {
    case 0:   
      enableUur();
      break;
    case 1:   
      enableVijf();
      enableOver();
      break;
   }
}

void enableUur()
{
  mydisplay.setLed(1, 1, 5, true);
  mydisplay.setLed(1, 1, 6, true);
  mydisplay.setLed(1, 1, 7, true);
}

void enableVijf()
{
  mydisplay.setLed(0, 0, 0, true);
  mydisplay.setLed(0, 1, 0, true);
  mydisplay.setLed(0, 2, 0, true);
  mydisplay.setLed(0, 3, 0, true);
}

void enableOver()
{
  mydisplay.setLed(0, 0, 0, true);
  mydisplay.setLed(0, 1, 0, true);
  mydisplay.setLed(0, 2, 0, true);
  mydisplay.setLed(0, 3, 0, true);
}

void updateTimeMin()
{
   minute = RTCValues[5] + 1;
  if(minute == 60)
  {
    minute = 0;
  }
  hour = RTCValues[4];
  completeUpdate();
}

void updateTimeHour()
{
   minute = RTCValues[5];
   hour = RTCValues[4] + 1;
   if(hour == 24)
   {
    hour = 0;
   }
   completeUpdate();
}

void completeUpdate()
{
  second = 0;
  dayOfMonth = RTCValues[2] ;
  dayOfWeek = RTCValues[3] ;
  year = RTCValues[0];
  month = RTCValues[1];
  DS1307.setDate(year, month, dayOfMonth, dayOfWeek, hour, minute, second);
  DS1307.getDate(RTCValues);
  VisualizeTime();
}
9  Using Arduino / General Electronics / Re: Newbie question on designing your own 'board' instead of using wires on: January 04, 2013, 04:34:12 am
Hi all

Thanks for your great input! I started off installing a few and just from looking at steps and clicking around a bit I liked PCBExpress best for now... might move on to another one as soon as it's needed though.

From the website I understood that the first step was to create a scheme using ExpressSCH and this is the result:



Before moving on to the next step I was wondering about a few things:

  • As I'm using a lot of leds I just want to have 'pins' on my PCB where I can connect the wires to from the LED matrix. Should I draw something for this in this sketch?
  • I'm using some pushbuttons as well, should I put them on here as well?

Thanks!
10  Using Arduino / General Electronics / Re: Newbie question on designing your own 'board' instead of using wires on: January 03, 2013, 03:18:04 am
Can Fritzing be used for this? I already used it a few times to make a layout for breadboard - no PCBs yet. Bit afraid that Eagle is too difficult to start with.

Thanks!
11  Using Arduino / Project Guidance / Re: Arduino hangs? on: January 03, 2013, 03:16:44 am
Hi all

There is already one 100 uF condensator attached between ground and 5V where it enters, I hope this is enough for the decoupling or am I misunderstanding this? (sorry pretty new to electronics!)

The extra LED might be a good idea but will take some time to implement as it's a closed system... I'll check how I can do this! Adding an extra arduino is not feasible at this time.

I didn't use any Strings so no string class afaik but I'm using 3 includes: #include <LedControl.h> (matrix), #include <Wire.h> and #include <DS1307.h> (time).

Posting code would be fine for me but than it doesn't feel like solving the issue any more but just (ab)using you guys smiley
12  Using Arduino / General Electronics / Newbie question on designing your own 'board' instead of using wires on: January 02, 2013, 03:08:13 pm
Hi

I made an Arduino project with simple connections but quite a lot of wires... as I would like to redo the project but don't intend to loose hours again on the wiring I'm looking for a better solution. Which software is easy to create any 'gerber' files that can be used to have your own PCB prints? I'm looking at the most easy software to use and only need connections to be created and holes, no components on there.

Thanks!
Stijn
13  Using Arduino / Project Guidance / Arduino hangs? on: January 02, 2013, 03:05:06 pm
Hi

Posting here as I think this is not related to the project but to the Arduino: I made my own word clock and noted that sometimes, very irregular, the system decides to 'hang'. This means that no time will be updated any more. As this is a standalone Arduino project I can't verify any other (serial) output. When I turn it off and on again it works and it stays working all night long...

Any experience?

Thanks!
14  Community / Exhibition / Gallery / Re: Arduino WordClock on: December 24, 2012, 11:43:50 am
I'm using 2 MAX7221 chips, they work great. Apart from that also 5mm high brightness leds, but just using 2 MAX7221s, they don't dim that much... just have to figure out a better solution...
15  Community / Exhibition / Gallery / Re: Arduino WordClock on: December 24, 2012, 10:27:41 am
Hey thanks for the fast response!

I started off with ordering venyl stickers which is rather expensive to 'test' so I feel stuck after ordering a few of them... the next one should be the right one. I'm working on a 50x50cm.

Here you can see the results so far:

Using a transparent sticker:


And a non transparent one:


I tried black 'light' paper between it, I tried white paper, I tried normal white paper, I tried so many things smiley nothing works so far...
Pages: [1] 2 3