MIDIbox Forum: how to arrange LED's in a circle with eagle - MIDIbox Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how to arrange LED's in a circle with eagle tips on grid settings Rate Topic: -----

#1 User is offline   sidmonster 

  • MIDIbox Newbie
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 25-April 11
  • LocationUSA

Posted 29 September 2011 - 14:31

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?
Signature Schmignature

#2 User is offline   m00dawg 

  • MIDIbox Guru
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 1,083
  • Joined: 27-March 07
  • LocationUSA

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 :)

#3 User is offline   nuke 

  • MIDIbox Addict
  • PipPip
  • Group: Members
  • Posts: 129
  • Joined: 31-August 08
  • Locationberlin/cologne

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 :ahappy:

#4 User is offline   Wilba 

  • MIDIbox Hero
  • View gallery
  • Group: Administrators
  • Posts: 3,284
  • Joined: 27-August 03
  • LocationMelbourne, Australia

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.
Posted Image 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 User is offline   nILS 

  • MIDIbox Hero
  • View gallery
  • Group: Administrators
  • Posts: 3,986
  • Joined: 22-July 03
  • LocationStuttgart, Doucheland

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.
Check out the unofficial MIDIbox Quote database

Posted Image 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.

#6 User is offline   m00dawg 

  • MIDIbox Guru
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 1,083
  • Joined: 27-March 07
  • LocationUSA

Posted 30 September 2011 - 20:47

BAM there's the math! That should make things easy!

#7 User is offline   Bääääär 

  • MIDIbox Newbie
  • Pip
  • Group: Programmer
  • Posts: 40
  • Joined: 19-June 10

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

This post has been edited by Bääääär: 16 December 2011 - 13:49


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users