autoStrmmer.

6,893

57.

13

简介:AutoStrmmer.

{This instructable was created in fulfillment of the project requirement of the Makecourse at the University of South Florida (www.makecourse.com).}

AutoStrmmer可以放在原声吉他的孔上,并将阵列设置为6个触觉按钮选择。电位器允许速度控制,菜单系统为用户提供一些节奏的弹奏选择。

虽然时间限制确实导致一些糟糕的设计选择(见已知的问题below), the end result worked! However, I had to modify my guitar string heights slightly by placing spacers at the bridge, so it may not work on every guitar right off the bat. Also, it's sized formyguitar, so it may or may not fit every acoustic guitar out there, I'm not sure. My guitar hole is 3.875" diameter.

补给品:

工具:

  • Screwdriver
  • 3D Printer
  • FDPD上传芯片将数据上传到微控制器
  • 12-30V电源,300 m min。
  • 声学吉他(几乎需要)

部分:

  • 1x - Arduino Pro Mini,Nano或其他小型微控制器
  • 1x - 电压调节器,线性 -lm2940t-9.0
  • 6x - 触觉按钮,内置LED - TL1240GQ1JCLR
  • 1x - 28byJ-48步进电机(5V优先,12V似乎具有较低的顶峰)
  • 1x - 电位计
  • 1x - microSwitch
  • 1x - 步进电机驱动器芯片 - DRV8825或可比性
  • 1x -PCB Prototype Board, 3cm x 7cm
  • 1x -2.1X5.5MM Power Jack --EJ501A
  • 6x - 470欧姆电阻器
  • 1x -22 µF Capacitor
  • 1x - 100μF电容器
  • 1x -100 Pack of 4-40 Phillips Screws, 1/4" (will not use all 100)
  • 1x - 100包4-40菲利普斯螺钉,1/2“(不使用全部100)
  • 12x - 4-40 washers or nuts
  • 2x - 春天
  • 22规格绝缘电线,固体和滞留
  • 各种引脚连接器根据需要
  • 廉价吉他挑选(或者您可以使用我的stl文件打印一个)
  • Foam or Cotton Balls

补充笔记:

The spring I used was 1" x 1/4", from a Home Depot spring kit. I would not recommend this simply due to the force required to compress it. If you can find a weaker spring equally sized (or even a smaller diameter), it would really make putting this on a guitar a lot less of a pain.

我使用的电位计和微动开关从旧硬件中清除,因此难以解决它们的确切匹配。MicroSwitch Base可以定制打印,以满足您使用的任何尺寸。对于电位器,如果需要,可以使用间隔物来使其提升到适当的高度。如果找不到适合的,可以完全遗漏,电路修改,使得适当的引脚始终看到5V(因此它将在禁食时间播放)。请参阅下面的电路部分。

Step 1: Printing

The first step is to print each part out! While there are some identical components, I have included every part with a unique file. So just print every file provided.

所有STL文件都可以在.zip文件中找到。赋予指令不会让我以某种原因上传zip文件,因此只需删除'.txt',它将作为正常的zip文件。

Step 2: Assemble LH and RH Bases

在这里,我们将组装闩锁到吉他孔中的部分。每一方都是相同的,所以你只需两次这样做!

First, screw each hole clip to the slide with 1/4" 4-40 screws and nuts. You'll want to see how the inside of your guitar's hole is structured, and place the feet accordingly so they'll fit (each foot has an offset flange). If you can't get the nuts started with the 1/4" screws, you can first use 1/2" screws and then switch the screws out once the nuts seat into the plastic.

对于最后一步,将滑块放入基座中,然后将螺钉弹出到位置,使其位于每个部分上的圆形凹槽中。我使用的春天(见照片)有点太强,这使得在吉他上难以安装。尝试使用一个非常强壮的弹簧,但足够弱,在它仍然可以在合理的力量下滑动。

第3步:将LH和RH基于LH和RH中间部分

在这里,我们将简单地将基座拧到带上1/4“螺钉的中间部分。简单而快速!每一侧仍然应该是分开的。

The photo is from later on in my build -- so don't worry about the foam yet, we'll add it later.

第4步:组装镐盒

要组装镐盒,您将首先需要剪吉他挑选以适应盒子内。您可以使用3D打印的拾取本身,或者更好地用作剪裁指南以剪裁真正的选择。我从未尝试过3D选择,所以不确定它会有多好。

Insert this pick into the box, and insert two pins into the holes to lock the pick in place. I had these pins on hand, but screwing or gluing in the 1/2" screws should work as well. At the very worst, drill the pin holes all the way through the box, and use longer screws with nuts.

Cut small squares of foam and put inside the pick box to keep the pick in the vertical position (each foam piece should be identical so forces are equal). If you don't have foam, I'm guessing cotton balls might work as well.

Screw the pick box to the pick slide and make sure to include the shim between the two. This ensures the pick is the appropriate height above the strings. You can always add more/less shims as necessary if your guitar strings are different. The shims I printed were too long and hit the pick, so I used metal cutters to trim them shorter.

Step 5: Stepper Motor Modification

步进电机是单极电机,所以我们首先需要将其转换为双极电机。基本上,单极电机只需将5V电流输入到每个线圈的中间,并且电机驱动器选择了一个线圈的一半电流以控制该线圈'推动'或'拉动'电机。但是,DRV8825芯片驱动器可以通过相同的引脚向前发送电流并向后发送,因此我们不需要将线圈分成两半。

在28By-48的情况下,红线为中心提供电源both线圈。因此,我们不仅需要完全切割电线,而且还需要切割电机电路板上的轨迹,以便线圈在其中间线上没有短路。

Take pliers and pry/pull off the blue plastic cover of the motor chip. If you break it, that is okay as the motor will be safely covered by the strummer housing. Look where the red wire enters, and see how there is a center trace that runs to both coils. Scratch this trace with a metal screwdriver or something pointy to sever the connection. Check with a multimeter that the coils are no longer electrically connected.

Note: If you ever want to reuse the motor as a unipolar, all you need to do is re-solder the trace cut. However, make sure you don't clip the red wire short in this case, as you will want to have the wire again when you switch it back. I don't plan on using these as unipolar again, so I just cut the red wire completely.

第6步:连接电机并拾取幻灯片

首先,将拾取箱的一个臂滑入LH中间部分的方孔中。我在这里使用了一些有机硅润滑脂,但它是可选的。

接下来,将金属销推入步进电机臂的一端。我不得不使用卧式按下,因为它紧紧地按下。然后将臂推到步进电机的输出柱,直到它完全坐下。没有将其推到足够的下降会导致它旋转时擦拭盖子。

Lastly, screw the stepper motor onto the support post of the LH mid-section. Make sure to set the pin into the slot of the pick box so that when the motor moves it pushes the pick box side to side.

第7步:附着脚和RH侧

将双脚拧到LH中间部分的背面,如1/2“螺钉所示。然后将单个LH和RH脚拧到每个相应的中间部分(螺钉头应位于中间凹槽的槽中,不是脚的底部)。

Step 8: Attach RH Side

通过步进电机的安装法兰,中心柱和后脚将RH侧连接到LH侧,通过1/2“螺钉。

Step 9: Assemble the Cover

拿起LH和RH盖子,并使用1/4“螺钉与半圆滑动盖连接在一起。我们实际上不会将此封面附加到剩下的飞镖,直到最终,但你想要推动当您组装电路时,所有内容都在一起,并在适当的情况下确保适合装备。

Step 10: Add Foam

此时,我们可以将一些泡沫条带到飞行器的底部,在那里它将与吉他和孔脚接触。

切割正方形足以让夹紧表面揉搓吉他孔的内边缘。用胶棒涂上泡沫,然后将它们粘在塑料上。服用两三个橡皮筋并伸展周围所有4英尺,以确保胶水干燥时泡沫粘在塑料上。

After the glue dries, place the strummer body on the guitar by compressing the feet inwards and then down into the hole. You may want to screw on the top cover first as this provides a lot of the structural support when pushing in the feet. Once on the body of the guitar, place foam under the body and feet to help support it at an appropriate level, and to prevent scratching.

For my guitar, I ended up using two layers of foam on one side, and one on the other. So do what works.

步骤11:级别字符串

虽然起步位于吉他上,但在弦中移动镐(您可能必须删除电机臂以执行此操作)。

The guitar strings probably won't really be flat, which will make the pick box miss or get stuck on some of the strings. Look across the strings horizontally, and try to see which ones stick up too high, or not enough. Take the string shims and try to level the strings as best as possible by placing them between the strings and the bridge, so that the pick hits each string evenly. Use extra foam to raise the whole thing up if some strings are too high, or increase/reduce the pick box's shim (installed earlier). Just be careful to consider how everything will fit together in the end when changing shims!

Step 12: Arduino Sketch

随着大多数装配完成,让我们准备好了我们的Arduino芯片软件。文件包含在zip'text'文件中,可以通过Arduino IDE编译和上载。我还包括pinchangeinterrupt库。

剩下的计划文件是由自己编写的,部分作为学习经历,部分是因为步进图书馆,我试图在任何原因(可能是用户错误)的任何原因(可能是用户错误)的预期运行我的电机。您将想要修改代码,以便通过更改#define线旁边的数字来准确地编程所使用的针对每个组件的引脚strummermain.cpp.

如果发现您想要使用更高的电压并认为它会让您播放更快,您可以通过更改值更改最大速度pot.max_tempo()function underSetup()strummermain.cpp.。这个数字在每分钟节拍中。

最后,您可以通过更改值下方的值来更改步进电机将在串之间使用的点位置struct stringPositionsGlobalVars.h。Care should be taken when modifying these, as setting them too high will result in the motor stalling out on the housing and losing steps. Also, it might be a good idea to back these up before changing them, as they were found initially by measuring angles in the CAD drawing and may be difficult to find simply through trial and error.

使用草图准备好了,最后一部分只是将其上传到芯片中。我用了一个FDTI盾牌板Sparkfun。这确实需要焊销到头部board, but makes it a lot easier to upload the sketches.

步骤13:电路设计概述

The next few steps will involve the circuitry. The image above is the circuit diagram. For my project, I used a Pro Mini Arduino and a DRV8825, but the Pro Mini is supposedly not produced anymore by Arduino so you may have to find a 3rd party manufacturer. Also, the DRV8825 can theoretically be replaced by any stepper driver since they are all based on the same general pinout, but voltage limits would have to be considered.

Note: My 3D print originally was made for a ULN2003AN transistor driver board, but I later changed to a bipolar chip driver. Thus, I made a custom bracket to hold a small PCB prototype board for the additional circuitry. Depending on how you integrate your parts, you might need to make a slightly different bracket.

电路有一些主要组件,详细介绍:

  1. 电机驱动器芯片:这需要,方向,5V供应pins, 4 motor pins, and separate power and ground. The program will pulse the step and direction pins as appropriate, and hold 5V high during motor operation to the reset and sleep pins of the stepper driver. When the motor isn't running, the 5V pin will drop low to keep the stepper from getting hot as it otherwise tries to provide 'holding torque' to the motor.
  2. Potentiometer: Supplied with 5V, and connected to ground on the other. We read the potentiometer setting with an analog input pin to see what tempo to play the strummer at.
  3. 6触觉按钮:每个按钮连接到单个INPUT_PULLUP引脚。按下按钮时,它将触发程序中的中断。然后,程序将读取所有6个按钮,并确定按下哪些按钮(低电压=按下)。
  4. Button LEDs: Each button has a unique LED within it, which helps the user use the program and menu. There are thus 6 unique LED pins, which route through 470 Ohm resistors prior to reaching the LED.
  5. 电压调节器:当更高的电压通过电流限制芯片驱动器时,5V步进电机运行最佳。在我的项目中,我向DRV8825提供了22V(可以处理最多48V),但限制电流约为160mA。然而,Arduino需要12V或更少。因此,电压调节器将22V(该调节器只能处理26V最大)降至9V,Arduino可以容易地转换为5V。两个电容器,标记在原理图上,有助于在调节器之前和之后过滤任何浪涌。需要22μF,但如果您的电源良好和供电之间的距离,则为0.47μF是可选的。
  6. MicroSwitch:MicroSwitch在运行期间有助于坐直电动机,这可以容易地由于其交叉串而导致的一两步。这需要在开关关闭与地面时读取输入_pullup引脚。

实际的电路施工将稍微留给您。因为PCB原型板是一种痛苦的电线(并且这个是小空间有很多事情),所以你必须在如何将它整合在一起。要考虑的主要事项是空间考虑,以确保一切都符合在一起,效率。通过效率,我的意思是,像地面这样的许多东西可以一起被公共汽车成单线。

但是,您可以在上面的图像和以下步骤中看到我最终接线的步骤,无论好坏。我实际上强烈建议在kicad或另一个程序中创建实际的pcb,以节省空间和头痛。如果我要再做这个项目,这就是我会做的。

步骤14:电路组件:电压调节器

The voltage regulator has three pins. The regulator input connects to the high voltage point on the 2.5mm jack and the ground of the regulator to the ground of the jack. The 9V output pin connects to the Arduino board's Vin. Lastly, solder the 22 µF capacitor from the output pin to ground, and the 0.47µF capacitor from the input pin to ground.

Step 15: Circuit Assembly: Chip Driver

您需要连接:

  • 4至A1,A2,B1,B2的电动机电线
  • Step pins
  • Dir Pin.
  • VMOT到高输入电压(预调节器)
  • 2个GND引脚
  • Reset and Sleep pins to 5V pin (needs to be a digital pin as program will turn this off/on)

在实际连接电机之前,您需要使用芯片上的电位器设置电流限制。因为160 mA是如此小(步进电机很便宜),锅需要几乎处于完整的0位置。你必须测试这是什么,但我很确定0 =完全cw。

要进行测试,请使用电机断开连接电机进入电源,触摸到锅螺钉头部的万用表探头,然后触摸另一个接地。继续转动罐,直到读取适当的参考电压(您必须读取芯片的数据表的特定电压到当前公式)。

步骤16:电路组装:按钮和Arduino板

将每个按钮放在原型板上,以便它们将适合弹簧式情况的平方体,如图所示。将470欧姆电阻放在每个按钮的内部LED中的每个按钮中心。将按钮和LED线路焊接到引脚,然后为所有按钮和LED创建单个接地总线电线。将此接地总线连接到电路板的地销。

Arduino板可以焊接到PCB上,偏移到侧面oppositeof where the chip driver will sit. Take a lot of time to make sure there will be room, and really think out how you plan to lay out all the required connections. Refer to the schematic, and计划。进入一个小空间很多,所以即使是几个错误也意味着它不会结束。

步骤17:电路组件:电位计

电位器需要从电路板的5V输出引脚(不是数字销)的5V电源,另一侧连接到5V电源。然后将中心连接到模拟引脚。方向无关紧要,除非您想控制增加/减少速度的实际旋转方向。电位器坐在我的设计中的帖子上(随意胶水)。因此,每当您准备好组装它时,只需普及它即可准备好!

第18步:连接微动开关

微动开关的一个引线连接到地,另一端到数字销。方向无关紧要,因为它只是一个开关。

接下来,使用两个1/2“螺钉将微动开关连接到安装块。因为螺钉太长,我将螺母添加为厚垫圈以减小它们的长度。

接下来,采用微开关安装块,并松散地将其连接到Rh侧。您会注意到插槽是椭圆形,以允许轻微的位置调整。在微动开关中拧紧,并适当地调整,以便镐盒几乎没有关闭开关,当它右右侧(但在它与外壳接触之前)。拧紧安装块螺钉,使开关固定在该位置。

Step 19: Circuit Assembly: Put It All Together

适当的路线电线。外壳有一些用于步进电机线的插槽,上面的照片显示了我如何路由所有其他的。它花了一点刮一起,弯曲(以及一些塑料连接器的一点点切割),但我把它全部适合在那里。根据您的方式,您可以通过巧妙地路由原型板来节省大量空间。

您可以看到接线结束的螺母是多么用于我的原型板,因为我严重低估了所需的连接数量。如果它看起来很乱,尽可能巧妙地适应它,尽可能聪明而整洁地适应它。

注意:按下按钮时,有一个中心柱以支持原型板。您希望在电路板上没有导线或焊接连接在该中心位置(但稍微略微偏移)。当您将电路放在一起时,定期检查适合才能!

第20步:上传草图

一旦电路组装,我们现在可以上传啊ur final sketch into the Arduino chip using the FDPD pins of the chip. You can theoretically do this much earlier, but you may find that your pin layout has changed during the assembly due to space limitations, or you may even cause corruption of the program after handling the chip during assembly. (This happened to me during some troubleshooting, and it took me a bit to figure out what was wrong. After re-uploading the sketch into the chip, the strummer suddneely worked again).

Step 21: Screw It Up!

一旦上传草图,您可以将所有内容与螺钉放在一起。除了步进电机和电路板外,螺钉应该全部为1/4“4-40'。电路板需要真正的小螺钉,我从一些废物硬件上脱掉了一些(但是你可以轻松购买较小的螺丝)。

第22步:玩

您现在可以将Stremer附加到您的吉他。向内压缩脚,然后将它们放入吉他的孔中,使它们夹在,确保后脚不会捕获弦。使用泡沫来帮助级别在琴弦上级,并保持其意外刮伤表面。

将22V电源(或其他适当调节电压)插入插孔,电机将零。当它完成归零时,LED将闪烁3次,然后它已准备好玩!

您可以按下相应的字符串按钮播放,或通过一次按两个按钮使电机播放一系列字符串。如果按下两个以上的按钮,它将播放到最外部选定的字符串。

使用电位器来控制步进电机阵阵的下一个节拍的快速。由于使用这种廉价的步进电机,最快的速度仍然相对较慢,但理论上可以允许更高的速度速度速度更高。

通过将最外层的字符串置于最内侧字符串(1,3,4,6),进入“节奏菜单选择模式”3秒钟。在菜单模式下,您可以通过按下两个中心闪烁按钮(上下)来选择不同的节奏。高E串上的LED在节奏的下游闪烁,以帮助确定节拍的击败。并且,低E按钮可以再次保持3秒钟以退出菜单模式。

Step 23: Known Issues and Final Thoughts

项目当前状态有一些已知的问题,其中一些可能会受益于完全重新设计。首先,步进电机的速度和缺乏功率导致非常缓慢的播放速度。

其次,该程序有一个错误,我尚未能够识别,这基本上导致程序冻结并偶尔停止播放。只需拔掉电源并重新启动解决问题,而且很烦人。如果您愿意,请随时调试程序!

最后,吉他的琴弦并不像最初想象的那么平坦。吉他的桥实际上是弯曲的,这意味着随着挑选的弦乐,一些相对于拾取的弦高于其他弦,导致每个斗篷的响度变化。并且当播放器按下串时,它会使此高度变为足够的高度,以实际地导致字符串在较高的FRET处不播放。

但足够的悲观主义!吉他还在播放,它仍然是一个很好的学习体验,看起来很酷!我肯定有兴趣在某些时候尝试第二个版本,并希望能够提高初始设计。也许每个字符串的个人选择真的得到一些riffs goin'?!

Be the First to Share

    建议书

    • 玩具与游戏比赛

      玩具与游戏比赛
    • Big vs Small Challenge

      Big vs Small Challenge
    • 修复它挑战

      修复它挑战

    13评论

    0

    看起来像1969年凯文戈利和LOL Creme的主题的变体。它们是带10cc中的驱动力,该设备被命名为GizMotron(或Gizmo)。他们在1975年专利了,但这足以使其不侵犯。为了兴趣,搜索“10cc gizmo”。我是一个鼓手,而不是一股飞镖,但我认为这是一个非常聪明的应用程序。

    0
    tytower.

    2天前

    Looks like a great start. Next up some solenoids over the kneck and you have an automatic player. Was it Kraftworks ,maybe not but there is an automatic guitar string based unit that plays music according to a script somewhere on here.

    在UTUBE上也可能有一个视频。我有它在某个地方,但发现它可能是一个问题。

    0
    Jacobstambaugh.

    13小时前回复

    That was originally my idea, but maybe a bit too complex at the moment... Are you referring to the LEGO machine? (there's a video of one on youtube). I was trying to also make it somewhat portable and sturdy, and it got hard to fit the two axes of motion into such a small space... Next time

    0
    Zayedalam

    2天前

    very nice but can we play other songs other than chords?

    0
    Jacobstambaugh.

    13小时前回复

    你可以玩任何你想要的东西!只要它是一个很好的,像你的和弦的速度一样好,可以更好的版本,至少需要一位挺直(垂直拾取的挑选),以真正播放更复杂的东西。它让我意识到简单的简单乐器实际上是多么复杂......

    0
    Spi_WvS

    15小时前

    您的锁定问题可能是过热的电压调节器。您的电源显示23V,如Aprox。50-60mA(任何LED都不知道,步进驱动板需要@ 5V)5V调节器必须消散P =(23V-5V)* 0,05A = 0.9W。如果没有散热器,电压调节器(Rth,JC = 3°C / W和RTH,JA = 50°C / W)的热敏突起将在一段时间后的温度为至少70-80°C。将散热器或一块铝添加到电压调节器的情况下,并降低电源的输入电压。还有两个100nf帽是5V调节器终端的一个好主意。

    0
    Jacobstambaugh.

    13小时前回复

    有趣的!我不是100%肯定,如果是吗(在我释放所有按钮后似乎只锁定,所以我认为它与我的代码有关。但当然,我应该在设计中经过更多的东西。谢谢你的脑袋!

    0
    niokeskub.

    3天前

    相当了不起!
    将它与一个ez和弦夫妇,你让自己成为最容易玩的吉他!

    0
    keets

    4 days ago

    精彩的项目!

    0
    Tercero.

    4 days ago

    非常整洁。对于复杂的模式,这将是上帝发送的。

    0
    Kid space

    5天前

    非常有创意,我喜欢它。