Hello,
I have been using eagle for my control panels for the past few months and one thing I've not gotten the hang of is how to arrange led's in a circle, they always come out kind of looking like an octagon rather than a circle, I can do it if I set the grid to "finest" but I want to make sure they are all evenly spaced. Does someone have an eagle part library with led circles or is there some trick people are using?
Page 1 of 1
how to arrange LED's in a circle with eagle tips on grid settings
#2
Posted 29 September 2011 - 20:06
I thought there was an Eagle library for circular LEDs on the wiki but didn't find out. With a bit of math, you could figure out the angle of the LEDs and positions. Eagle allows you to specify both absolute positions and angles so you could do it that way.
I would consider making an Eagle library for it so you can just plop down your LED rings into your schematic for however many you need. That way they will at least look the same.
Failing that, you can find LED rings as pre-built parts. Not as fun, but seems like they work - I haven't tried them though so I don't have any specifics on where to go to find them. But I know they exist
I would consider making an Eagle library for it so you can just plop down your LED rings into your schematic for however many you need. That way they will at least look the same.
Failing that, you can find LED rings as pre-built parts. Not as fun, but seems like they work - I haven't tried them though so I don't have any specifics on where to go to find them. But I know they exist
#3
Posted 29 September 2011 - 23:05
...just make an own package in library and move the led off the center to the right, then you can use the angle tool to rotate them around that centerpoint... 360/ amount of leds = angle
#4
Posted 30 September 2011 - 03:05
Can't you design what you want with some other program (like Inkscape) and then type in the co-ordinates for each LED?
I'm not an Eagle user, but that's what I did with another crazy idea I had recently, arranging LEDs according to Fermat's spiral, just made a spreadsheet to calculate the coordinates I wanted and then copy/pasted into the component's coordinates.
I'm not an Eagle user, but that's what I did with another crazy idea I had recently, arranging LEDs according to Fermat's spiral, just made a spreadsheet to calculate the coordinates I wanted and then copy/pasted into the component's coordinates.
Buy Wilba a Beer Disclaimer: buying Wilba a beer gets you absolutely nothing in return likesuchas sammichSID kit order queue jumping, purchase of SIDs and MIDIbox troubleshooting assistance.
#5
Posted 30 September 2011 - 20:26
[x] What wilba said.
position x(n) = r * sin(n * (1 / n) * 2 * Pi)
position y(n) = -r * cos(n * (1 / n) * 2 * Pi)
for n LEDs arranged in a circle with radius r.
position x(n) = r * sin(n * (1 / n) * 2 * Pi)
position y(n) = -r * cos(n * (1 / n) * 2 * Pi)
for n LEDs arranged in a circle with radius r.
Check out the unofficial MIDIbox Quote database
Buy nILS a Beer Disclaimer: buying nILS a beer gets you absolutely nothing in return likesuchas real-time chat support, gm5x5x5 pcbs, MIDIbox troubleshooting assistance or a less grumpy german.
Buy nILS a Beer Disclaimer: buying nILS a beer gets you absolutely nothing in return likesuchas real-time chat support, gm5x5x5 pcbs, MIDIbox troubleshooting assistance or a less grumpy german.
#7
Posted 16 December 2011 - 13:45
There's an ulp for that. Take a look at cmd-draw.ulp
It does exactly what you need (and even more). Experiment with its settings, its pretty straight forward. Just put some LEDs on your board, with names adjunct to each other. Example LED10, LED11, LED12, LED13. The run the ulp and select "Move". (You want the LEDs to be moved). Enter the name of the first element, then radius, start and stop angle (and don't forget to set a tick on "rotate item to match") and what else you might want to let the script do. Then hit enter and be happy
Bääääär
It does exactly what you need (and even more). Experiment with its settings, its pretty straight forward. Just put some LEDs on your board, with names adjunct to each other. Example LED10, LED11, LED12, LED13. The run the ulp and select "Move". (You want the LEDs to be moved). Enter the name of the first element, then radius, start and stop angle (and don't forget to set a tick on "rotate item to match") and what else you might want to let the script do. Then hit enter and be happy
Bääääär
This post has been edited by Bääääär: 16 December 2011 - 13:49
Share this topic:
Page 1 of 1



Help
















