Loading...
  Show Posts
Pages: [1] 2 3
1  Using Arduino / Project Guidance / Re: Switching a lot of lightbulbs on: April 16, 2013, 08:27:45 am
Thanks all of you for your ideas!
Optocouplers could do the job...and hacking led signs for controlling is a quite interesting thought!
2  Using Arduino / Project Guidance / Re: Switching a lot of lightbulbs on: April 14, 2013, 04:11:27 pm
Ouh yeah! Thats quite a lot of interesting stuff here!
CrossRoads:
I am from europe - and we got a new law that prohibits the use of conventional bulbs in home use. The project will be some kind of game, where lightbulbs are used as "pixels". The aim of this work is to seize the prohibition of the lightbulb, and should be a hommage to it. So, i'd totally agree that nobody 'd notice that there are no real lightbulbs used - but it would feel somehow like cheating. The more conventional the used bulbs are, the more the original idea of the work is hit. In my opinion 230V - 60W - glow wire is "conventional".

You already pushed me in an interesting direction with SSR's. I researched some distributors and the price is below the one of normal relays...perhaps this is really the way to go.
I am wondering that nobody buildt someting like that....

Thanks for your input!!!
3  Using Arduino / Project Guidance / Re: Switching a lot of lightbulbs on: April 14, 2013, 01:44:07 pm
I know this sounds fairly stupid...but yes: due to aesthetic reasons lighbulbs are needed.
With leds there are already some convenient solutions, like addressable led stripes...
Do you know any "out of the box" solutions for high brightness leds? In my opinion the high power chips are also difficult to control, because you need a constant current source...
4  Using Arduino / Project Guidance / Switching a lot of lightbulbs on: April 14, 2013, 01:24:12 pm
Hi!
I am tinkering about a project where i need to switch a lot of lightbulbs on and of.
So i searched and found some approaches. A project some of you might already know is Blinkenlights:

Here is some interesting information provided about the setup of blinkenlights http://www.retrocmp.com/projects/blinkenbone
I was always searching for a way to do something similar myself.

Is there a known way to switch "a lot of" (lets say 128) 230V AC lightbulbs? Relayinterfaces for pc offer mostly only 8 ports. Didn't i find the right devices? Or searched the wrong term?
Another way some people try are houseautomation devices (i don't know anything about these).

Could you imagine other ways to do this?
Do you know interfaces which use lets say 12v (for small lightbulbs) and handle this without relays?

Perhaps you have an idea!
Thanks a lot!!!
5  Products / Arduino Due / Re: IDE alternatives on: March 20, 2013, 05:45:44 pm
Hi!
Could you describe how you manage to import the arduino library to studio 6?
I get build errors all time.
For uploading i use bossac.
This thread was helpful: http://arduino.cc/forum/index.php/topic,151223.0.html
6  Products / Arduino Due / Re: Atmel Studio With Arduino Due on: March 19, 2013, 11:26:57 am
Hi!
Thank you neil for your advice!
I got rid off the "no previous declaration" errors! smiley
But.... smiley-sad
Now i am facing 58 errors like: undefined reference to 'GetTickCount' in wiring.c, undefined ref. to 'PIO_GetOutputDataStatus' in digital_wiring.c...and so on.
I only include Arduino.h like in the temporary compiled cpp from the arduino sdk.
Please help me out! This is so demotivating! I really don't know what i am doing wrong!
This was so easy with Uno...i did it many times without these strange probs....i am looking forward to loading the code up from atmel-studio...  smiley-cry
Can't somebody post a compiling example-atmel-solution?
That would be great!

7  Products / Arduino Due / Re: timer library for arduino due on: March 11, 2013, 11:59:56 am
Hi Guys!
Try this at home!
Working fine for me - check my documentation inline.
Also SimonCino's link is very helpfult at this point, there is some essential information specially about channels and clocks you don't want to miss. If you really want to understand what is happening: http://www.atmel.com/Images/doc11057.pdf
Any "Refs" in my documentation are pagenumbers from the link above.

Code:
//TC_CV address for Clock 1, Channel 1
//Ref: 911
int *TC_CV = (int *)(0x40084050);

void setup() { 
  Serial.begin(115200);
  //configure the Timer
  configureTimer();
  startTimer(); 
}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.println(*TC_CV);
  if(*TC_CV > 1000000){
    stopTimer();
    Serial.println("Timer stopped");
    delay(5000);
    startTimer();
  }
}


void configureTimer(){
  //remove writeprotection from timer registers so i am allowed to make modifications on them
  pmc_set_writeprotect(false);
  //enable the peripheral ID_TC4 - due to power saving terms this is turned off initially
  pmc_enable_periph_clk(ID_TC4);
  //define clock, timerclock 1, channel 1, and some fancy stuff i did't understand at all
  TC_Configure(TC1,1,TC_CMR_WAVE | TC_CMR_WAVSEL_UP_RC | 2);
  //define the frequency. this signal is 50% on 50% off
  uint32_t rc = VARIANT_MCK/128/1000000;
  TC_SetRA(TC1,1,rc/2);
  TC_SetRC(TC1,1,rc); 
}

void startTimer(){
  //start Clock 1, Channel 1
  TC_Start(TC1,1);
  Serial.println("Timer started");
}

void stopTimer(){
  //stop Clock 1, Channel 1
  TC_Stop(TC1,1);
}

What is happening?
Open your serial monitor. You will notice TC_CV counting up to 100000. Then counting stops for few secs - then TC_CV counting up again.
What is happening behind?
In setup the timer is defined and started. In loop is checked if the timer has already reached 100000. If so - he is stopped and execution pauses for 5secs. Afterwards the timer starts again.
Some interesting facts:
There is no reason(can't imagine one) to check a TC_CV register in loop like in this example - this is very bad practice! There are timer interrupts which come in handy...
The numbers you will see will differ more than one, the first number is not 0, the last is not 99999: The timer runs parallel to serial printing and loop(). And these two are very slow compared to the timer.

If someone finds out more about the waveform-magic (TC_CMR_WAVSEL_UP_RC, TC_SetRA) plz let us know!
Hope this helped! Have fun arduinoing!
8  Products / Arduino Due / Re: Atmel Studio With Arduino Due on: March 07, 2013, 09:53:45 am
Hi!
How did you setup your project?
I am trying to set up a compiling project for two days now - without success.
First i tried the "Arduino Due/X - ATSAM3X8E" C/C++ template delivered with Atmel Studio. This creates a main.c and in the project properties only the c compiler is listed. I'd like to use the Arduino-library. Therefore i need a C++ compiler (right?). Any suggestions how to get him in there? Do you know what the template configueres?
---Didn't get the C++ compiler in smiley-sad so i tried setting up a custom project

I started with the "GCC C++ Executable Project" Template and choose the ATMSAMX38E as device. Now i see the C++ compiler in the project properties. He got some additional informations:
- the directories /variants/arduino_due_x, /system/libsam, and /sam/cores
- the symbols ARDUINO=152, and F_CPU=84000000
- the linker to the libcore.a - compiled for the Programming Port Arduino Due
- i copy pasted the content of the Arduino-Software compiled .cpp into the main.cpp
---> and end up with 5 errors: "use of enum 'adc_resolution_t' without previous declaration", "use of enum 'adc_channel_num_t' without previous declaration"...in adc.h.
So i visited adc.h and found a lof of lines like: "#if SAM3S_SERIES || SAM4_SERIES || ...." followed by definitions of the variables described in the errors. Could it be that i need to tell my code somewhere else that i use a SAM3X8E?

I got quite stuck here. Does anyone else have similar problems?
Thank you for your help!
9  Products / Arduino Due / Re: Timer Interrupts on Due on: March 06, 2013, 02:05:21 pm
Hi!
I read trough this thread and find it very very helpful!
At the moment i am trying to measure times between signal-flanks. Therefore i need to stop the time between two (external)interrupts. I'd like to do this with a timer - but don't need the timer interrupt.
As far as i can see the actual time is hold in the TC_CV register. How do i get this value?
I saw you make a lot of use of functions like pmc_set_write_protect and others. Where do you get the documentation of these functions from? And why do you know they even exist? smiley
Thanks a lot!
10  Products / Arduino Due / Re: High frequency measurement using Arduino Due on: March 06, 2013, 07:53:22 am
I'm struggeling with a similar problem.
I took the approach of measuring the time between two interrupts.
Now it turns out that micros() delivers (randomly) wrong values when called in an interrupt-function.
Referring to this thread http://arduino.cc/forum/index.php/topic,148161.0.html
My new idea is to stop times directly with internal timers. But this turns out a bit more difficult than expected  smiley-confuse.
11  Products / Arduino Due / Re: driver installation error on: March 06, 2013, 07:37:58 am
Welcome on board!
Make sure you go trough these instructions:
http://arduino.cc/en/Guide/ArduinoDue
Go through ALL of these - it will save you time (and perhaps money), trust me! It's worth the 30 minutes!
12  Products / Arduino Due / Re: DUE problem with micros() inside interrupts on: March 05, 2013, 08:40:09 am
Hi!
Same here...
I am reading the time between two interrupts - and print the measured values. Also figuered out that printing is not the problem here - proved this by changing ports and measuring these with an oszi. I assume that the value of micros() differs exact 1000micS plus or minus the values they are meant to be - perhaps interesting for debugging.
Let us now when sby finds out more!
Thanks!
13  Using Arduino / General Electronics / Re: Anyone make their own circuit boards? on: February 13, 2012, 11:28:25 am
Hi Alligator,
i made horrible experiences with the toner-transfer method. I tried different laserprinters, papers - i invested a lot of time in figuering out how to iron correctly, got it once, but another try failed again. Very very annoying!
I recommend everybody the faster, more professional photoresist alternative. The human error is less and its cheaper (about 30€) in my opinion. You only have to try photoexposure once.  I etch with hydrogene peroxide and salt acid, its very fast, but you have to do it outside because of toxic gases.
Take boards from "Bungard" - this is important, they are very easy to handle!
If you are interested in more info, just write me again - i'll post the whole process then.
good luck!

I attached pic's - the black one is tonertransfer(look at the holes  smiley-mad )
the nice one is photoresist. Both are 5cm * 16cm. Care the "WS11/12" - this is gonna be hard with toner transfer  smiley-razz (excuse poor pics quality)




-edit-
pictures added
14  Using Arduino / General Electronics / Re: Difference between external Power source and Arduino - *~.'Magic*~°^-, on: February 13, 2012, 11:04:01 am
Thank you guys!
I'll check this out!
15  Using Arduino / General Electronics / Difference between external Power source and Arduino - *~.'Magic*~°^-, on: February 09, 2012, 07:31:32 am
Hi Tinkers!
I am facing an interesting problem with an external Powersource.
The basic setup:
Arduino controls up to 9(3 + 3 + 3) Tlc5940 in row - each fully equipped with leds.

I did a very simple animation - just light up each led alone with a little time difference.
This works very well if the Tlcs and the Arduino are powered via USB.

Now the magic:
To light up more Leds (more powerconsumption) i bought an external powersource, with 5V and 12V output.
I power the Arduino with 12V and my Tlcs with 5V. If i run the same sketch described before with external power, the leds on the Tlc's later in the row are blinking unregularely, noisily. The ones on the first few Tlcs are doing everything as expected. The noise is getting worse the later the Tlc in the row.

I assume:
Is this an effect of power decoupling? I didn't decouple anything - but why it works with USB power then?
I noticed the arduino has some decoupling itselves http://itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard In step 2. / 3rd Picture 2 C's à 10uF are installed. Do they do the job on the Arduino? I also assume that my USB has a very stable power source - i guess there is maybe no need to decouple.
Do i have to shield the PowerSource? I could imagine that the coils on the powersupply (it is openframe) are influencing the pwm on the bus between the Tlcs. I don't have an oscilloscope so i can't tell exactly which kind of signal loss i am facing with. I'am using shielded cables...but my circuits are unshielded...

Just fyi...i bought the PSA 25L-201
http://www.reichelt.de/index.html?;ACTION=7;LA=3;OPEN=0;INDEX=0;FILENAME=D400%252Fpsa25l.pdf;SID=29TSuWG38AAAIAAGvTfmM33d7834abf011b4e206157f613d43d8a

I am very exited about your suggestions and ideas!

OptimusPrime
Pages: [1] 2 3