Show Posts
Pages: [1] 2
1  Development / Other Software Development / Re: New Library for BiColor LEDs on: April 12, 2014, 12:41:14 pm
And another update, version 1.4. This one adds an overloaded setColor(color1, color2) method, and support for different delays on the two blink colors (to allow flashing/winking). As usual, see the Arduino wiki or GitHub to download.
2  Using Arduino / LEDs and Multiplexing / Re: One example works from the BiColor LED set, the other doesn't. on: February 08, 2014, 06:32:49 pm
Hi, I'm the author of the BiColorLED library. Sorry to resurrect an old post, but I wanted to clear this up in case someone encounters this thread in the future.

The blinkSpeed and lastBlink variables should, in fact, be private; it's the example that's wrong. I left a bit of debugging code in by mistake when I released the library. I've put out a new version (1.3) which fixes the example.
3  Development / Other Software Development / Re: New Library for BiColor LEDs on: February 08, 2014, 06:13:28 pm
I've just released version 1.3 of the BiColorLED library, which fixes the Blink example (I left debugging code in--oops). I've also put the code on GitHub.

I also have a library (toneAC) that does "AC" to drive a speaker at almost twice the volume as the standard tone library.  This is possible because I alternate the 5 volts between two pins.  In my case, it's designed to be extremely fast, so I use the Arduino's PWM pins and timer 1.  This also allows for perfect switching between the two pins without any programming slowing things down.

As a bonus, my library can also drive a bicolor two pin LED as yours does (one of my example sketches included with the library controls a bicolor LED with a pot to adjust the cycle speed).  You may want to check out my source.  As toneAC is designed for ultra speed and accuracy, you must use the timer 1 controlled PWM pins.  It also is totally driven totally by port registers for the fastest and smallest code.  Looking at my library may assist you.  I also have a NewTone library thats a modified version of toneAC but allows you to specify what pin you want to drive a speaker with.  This also may assist you with your library.

While writing library using port registers and timers may be a little more challenging at first, it's really not that hard once you do it a few times.  And, the benefits are many.  Very small code size, very fast, color switching and duty cycle can all be done in the background, no reason for delay statements which can kill a project, etc.

Best of luck with your project!

I'm not sure how I missed this post before; I probably overlooked the email.

The BiColorLED library is intentionally simplistic: it does something very simple, and does it well. It started out as part of one project, and then I decided to turn it into a library rather than doing a copy-paste. The original project was avoiding delay statements for other reasons, and the timer was being used for something else in the new one. I If anybody needs the features that your library provides (background operation, ultra-fast switching, color ranges) I would suggest that they use that one instead. Not that I don't like the idea of doing those things, but there's no point in reinventing the wheel, and the BiColorLED library tries to stay as simple as possible.
4  Community / Gigs and Collaborations / Re: Gig for Hire: Schematic to PCB Board on: September 07, 2013, 04:49:06 pm
Do you have the schematic available in electronic form (even a photo of a sketch), or do you only have the breadboard?
5  Community / Products and Services / Re: Serial Numeric Keypads, FREE with shipping to good home on: September 07, 2013, 04:43:53 pm
I still have several of these available. When you PM me, make sure you include your ZIP code so I can tell you how much shipping will cost.
6  Community / Products and Services / Re: Serial Numeric Keypads, FREE with shipping to good home on: April 14, 2013, 08:55:17 am
I do; PM me if you're interested.
7  Community / Products and Services / Serial Numeric Keypads, FREE with shipping to good home on: April 07, 2013, 04:11:18 pm
A while ago I acquired five used serial numeric keypads. They have a display which shows the number, an ENTER key and a Clear key, and five or six (depending on the type) unlabelled keys which don't do anything at all. They also have a very long cable, which ends in PS/2 male for power, a PS/2 female passthrough, and a female DB/9 for data. They're a bit dirty and sticky, but nothing that a bit of soapy water couldn't take care of. Three of them are the Genovation GLK18U, which has colour keys, and two of them are the COS-2010, which has black keys and a flip-up thing in the back to elevate it, like the legs on a keyboard.

Click on a thumbnail for a larger image:

According to email correspondence with Genovation about the GLK18U,
The GLK18U is a simple serial ASCII device. 9600 baud, no parity, no protocol, 8 data bits, 1 stop bit

It is an OUTPUT ONLY device and will not receive any data. It is NOT programmable in any way and it is also discontinued.

The direct replacement for it is the MiniTerm 900, which is Fully programmable and will receive host input.

The unlabeled keys are not-funtional.

This keypad was designed for Comalex as a custom pinpad.

If you're interested, tell me what you'd like to do with it and which one you'd prefer, and we can work something out.
8  Development / Other Software Development / Re: New Library for BiColor LEDs on: December 13, 2012, 07:57:18 am
 Version 1.2 released with Arduino 1.0 support. Thanks PaulDriver for the patch!
9  Using Arduino / Networking, Protocols, and Devices / Re: Sudden unreliability with my network-enabled Arduino project on: December 08, 2012, 11:20:30 pm
See for a quick way to filter your power supply. If it's a power problem, that should fix it.
10  Using Arduino / Networking, Protocols, and Devices / Re: Sudden unreliability with my network-enabled Arduino project on: November 17, 2012, 06:27:06 pm
Yes, the transformer was powering the Arduino. I hooked it up to a speaker and got some humming--if it's filtered you shouldn't be able to hear anything. I believe you can filter power supplies by using a capacitor, but in my case I just left it hooked up to my computer or ran it off of a 9V battery. (It wasn't a project meant for long-term unattended use.)
11  Using Arduino / Networking, Protocols, and Devices / Re: Sudden unreliability with my network-enabled Arduino project on: November 17, 2012, 05:25:53 pm
Fluorescent lights might cause trouble anyway, I don't know. I'm asking because I had some trouble with a project which wouldn't run on mains power, but ran on a battery or from USB. Other projects (such as the blink project) ran fine on mains power. I eventually discovered that the transformer I was using wasn't filtered and it was introducing just enough noise to break some, but not all, parts of the chip.
12  Using Arduino / Networking, Protocols, and Devices / Re: Sudden unreliability with my network-enabled Arduino project on: November 17, 2012, 03:43:57 pm
I think fluorescents (or their ballasts) create RF interference, but I don't know whether it would be enough to disrupt an Arduino. Are you using servos or other libraries which use hardware timers?
13  Development / Other Software Development / Re: New Library for BiColor LEDs on: August 30, 2012, 03:44:28 pm
Pulsating dc and ac are the same, a variable flow of electrons. The primary difference is the "Reference"... If "AC" is "Referenced" from the most negative level them you could say "It''s Just pulsating DC.
Whether it is sinusoidal, square rectangular (duty cycle not 50%) triangular.
Come to think about the definition a little and you will see that the prime requirement for AC... The one Difference that sets AC apart from noise is just Periodicity.
It is the periodicity that sets it apart and allows it to do useful and predictable work is it's periodicity.
Noise can be called AC... Pink noise (audio) and White noise (Full Spectrum) and random impulse noise are AC but because of the lack of predictability, little real work can be done with them.
If you put in place a device that passes AC only, a capacitor or a transformer will pass your "DC" very well. it will also filter the signal due to its reactance or response to an "AC" signal... again the Periodicity.
As to the library it does produce a signal that makes the LED light up Yellow... So the difference is?
Just the point of reference... Put it in the right place and your "DC" signal becomes "AC".
Place a diode in series and you remove 1/2 of the DC signal... Just as a diode would with AC... and you have DC again... pulsating but of one polarity... The signal cannot pull down when the input goes to it's lowest point because the diode will not conduct in the reverse direction.
OK, that mostly lost me. I just know the library works by reversing the direction of the power at regular intervals...
14  Using Arduino / Installation & Troubleshooting / Re: arduino prevents computer startup on: August 27, 2012, 11:29:32 am
No, that doesn't sound particularly normal. smiley-razz What kind of a Mac is it? Some of them had trouble with certain USB devices plugged in at startup. Have you tried any other USB devices or computers to see if the problem is limited to your Arduino or computer?
15  Using Arduino / Project Guidance / Re: High speed data collection project on: August 27, 2012, 11:17:06 am
I'm researching what would be needed to do the following:
1. Collect 8 discrete inputs and one analog input every 1 millisecond, along with a millisecond timestamp, for about 1.5 seconds total collection time.
I think the Arduino is fast enough to handle this, although outputting it to the computer might be a bit slower.
2. After collection, dump to a PC for analysis (USB or Ethernet)?
I generally use USB, but it depends on the application. If the Arduino is near the computer, USB will work fine, but if the Arduino is some distance away Ethernet would work better.
3. Discrete I/O is 24vdc, Analog is +-10vdc.
You'll want to wire in some opto-couplers and a voltage divider to step this down to the Arduino's 0-5v. If you want values between +10 and -10, the Arduino has a map() function which will allow you to map 0->5 onto -10->+10.
This process would re-occur once every 6 seconds.
The Arduino can probably handle this timing by itself, although it tends to drift by a few seconds every hour (depending on a variety of factors).

My questions would be:
1. which piece of hardware.
Any Arduino should do just fine.
2. programming method, IDE or gcc.
Your choice; the IDE converts your code to C++ and runs it through GCC.
3. I assume i'll have to use a sheild with opto couplers for the discrete inputs, and a voltage divider for the analog?
Correct; the Arduino can't handle voltages in the range you specified.
4. Method to move the data to the PC (VB .NET)
Serial should work, although you may find that you need to store the data for the 1500ms and transmit it after the readings are done, as Serial will slow down everything else. You'll need 1500*2 bytes, or 3K of RAM. I think the Mega has enough memory for this.
5. is there anything else to consider?
Not that I can think of.
Pages: [1] 2