搜索
bottom↓
回复: 58

磁悬浮玩具! MEGA168.

[复制链接]

出0入0汤圆

发表于 2007-6-20 14:30:57 | 显示全部楼层 |阅读模式
http://geek.techweb.com.cn/thread-91163-1-1.html



这东西应该是网上找来的,但在GOOGLE里找不到原来的网站,也找不到源程序,有兴趣的找找.(最后补充的消息:源代码请到14楼下载)



 就像在商店里卖的漂浮地球仪一样,它可以让带有磁铁的物体浮在空中,只不过这个装置结合了永磁铁和电磁铁,利用一个微控制器和一个IR感应器,当内部装有磁铁的小物体放在电磁铁的下方,IR感应器就会感应到物体的存在,微控制器就会启动电磁铁并调整磁力大小,当小物体受到向上的磁力和向下的重力相同时,它就会漂浮在空中,漂浮的位置和高度取决于重量和磁力大小。

所需材料如下:

- ATMega168 Microcontroller

- 1 16-20 MHz Crystal

- 28 Pin Socket

- Dual Full H Bridge IC

- 1 Power NPN

- 2 Electromagnets

- 1 Bicolour LED

- 2 IR LED

- 1 IR Photodiode

- 1 5V Regulator

- 2 Leveling Capacitors

- 1 SPST Switch

- 1 NO Button

- 1, 470 Ohm Resistor

- 1, 5 Ohm Resistor

- 1 Universal Breadboard

- 2 Cases

- Plexiglas

- Solder

- Hot Glue

- Steel Wire

- Vinyl Tubing

- 3 or more 1/4" diameter x 1/4" thick rare earth magnets (for the base)

- 2 or more 1/2" diameter x 1/8" thick rare earth magnets (for the objects)



这部主要是进行底座上各控制元件的安装,包括微控制器、电源供给、LED指示灯等部分的安装。具备电子学专业知识的朋友可以通过下面原文了解详细信息:



 For this step you probably should assemble the electronics on a solderless breadboard before soldering them together. The schematic to build the circuit is attached along with the hex file to load on the microcontroller. The Arduino - 0007 code file is in the introduction so you can tweak it or make changes as you need.



 It is very important to plan where all of the parts go, so all of the electronics will fit in the box the first time, If not it could be very frustrating and cause much grief.



 It is also important to note that the NPN power transistor(s) will heat up, to overcome this I mounted them to contact the aluminum base of my project box, This way it acts as a heat sink, preventing a spectacular fire. You will also need to come up with something similar to remove most of the heat from the box.



 Once the electronics are built, there is a section of code in the program to uncomment and and then load onto the chip to test the orientation of the coils. It pulses the coils off, pulling up, and pushing down, also indicated by the LED. If you hold a magnet under the electromagnets and it doesn't follow the pattern, reverse the wires.



网站上传功能又有问题了,半天传不上一个图.大家到顶上那个网站去看.



出0入4汤圆

发表于 2007-6-20 14:38:39 | 显示全部楼层
顶啊.这东东好好玩啊.

出0入0汤圆

 楼主| 发表于 2007-6-20 14:39:10 | 显示全部楼层
用关键字:Arduino找到了:



http://www.arduino.cc/en/Main/News



不知道是不是.照上面文章里说的是那个007的项目.我不能下,有兴趣的看看

出0入0汤圆

发表于 2007-6-20 15:30:36 | 显示全部楼层
这是来源的网站, 网页中 Electromagnetic Floater Program.zip 内有源程序及 HEX。



Electromagnetic Floater: http://www.instructables.com/id/E04KZEEF2FRVEHF

出0入0汤圆

发表于 2007-6-20 16:59:26 | 显示全部楼层
没看明白,怎么让悬浮的物体稳定下来?

出0入0汤圆

发表于 2007-6-20 17:11:21 | 显示全部楼层
原文资料不完整,尤其是硬件线路,很难搞成功。

出0入0汤圆

发表于 2007-6-20 19:50:30 | 显示全部楼层
好东东呀!顶一下!

出0入0汤圆

发表于 2007-6-20 21:09:23 | 显示全部楼层
好玩!

出0入0汤圆

发表于 2007-6-20 22:20:37 | 显示全部楼层
什么原理呢?

出0入0汤圆

发表于 2007-6-20 23:01:27 | 显示全部楼层
反馈控制系统,控制论的东西

出0入0汤圆

发表于 2007-6-20 23:50:33 | 显示全部楼层
好神奇啊

出0入0汤圆

发表于 2007-6-21 07:33:02 | 显示全部楼层
漂亮啊

出0入0汤圆

发表于 2007-6-21 07:46:31 | 显示全部楼层
这个东西我做过,不用什么单片机和什么程序了,一个LM358就搞定了。但是我做的电磁铁里面没有永磁铁,永磁铁是放在悬浮物上的。还有那个3个透明元件搞在一起叫做感应器的东西不知道是什么东西,我当时用的是霍尔元件。那个霍尔元件我这里还有很多,哪位要用的话可以从我这里买几个。哈哈顺便做个广告了,当时买的很多后来没有用到。其实这个东西没有那么神奇的,一个PI调节器而已。

出0入0汤圆

发表于 2007-6-21 09:06:53 | 显示全部楼层
应该向楼上说的,这个东西用模拟电路就可以实现,用单片机反到麻烦了

出0入0汤圆

 楼主| 发表于 2007-6-21 09:52:57 | 显示全部楼层
找到源文件了,传了上来,喜欢的可以看看:



点击此处下载armok01158718.zip



原来的网站地址:

http://www.instructables.com/file/FL338P8F2FRVEKZ/

演示:

http://www.instructables.com/tag/keyword:Floater/
头像被屏蔽

出0入0汤圆

发表于 2007-6-21 11:27:09 | 显示全部楼层
谢谢。

出0入0汤圆

 楼主| 发表于 2007-6-21 11:52:16 | 显示全部楼层
http://www.instructables.com/id/E04KZEEF2FRVEHF/?comments=all



电路图,是DWG格式的,我没有CAD打不开.

点击此处下载armok01158737.rar

出0入148汤圆

发表于 2007-6-21 12:34:12 | 显示全部楼层
转成pdf

点击此处打开armok01158777.pdf

出0入0汤圆

发表于 2007-6-21 13:23:21 | 显示全部楼层
哦,我也下来看看

出0入0汤圆

发表于 2007-6-21 13:51:42 | 显示全部楼层
看不懂啊,工作过程给解释一下啊,还有程序用什么软件编译的,怎么没找到MAIN()函数?

出0入0汤圆

发表于 2007-6-22 06:41:11 | 显示全部楼层
好玩!

出0入0汤圆

发表于 2007-6-28 07:06:54 | 显示全部楼层
http://www.714e.com/bbs/dispbbs.asp?boardID=8&ID=830&page=1

类似的帖。

出0入0汤圆

发表于 2009-4-30 22:43:07 | 显示全部楼层
持续关注中,
头像被屏蔽

出0入0汤圆

发表于 2009-4-30 22:46:13 | 显示全部楼层
谢谢。

出0入0汤圆

发表于 2009-4-30 23:01:21 | 显示全部楼层
原来很早就有人关注这个啦

出0入0汤圆

发表于 2009-5-1 16:17:32 | 显示全部楼层
有意思,期待大家的结果

出0入0汤圆

发表于 2009-5-4 03:00:00 | 显示全部楼层
pid很多地方用啊

出0入0汤圆

发表于 2009-5-8 14:16:37 | 显示全部楼层
mark

出0入0汤圆

发表于 2009-5-13 11:36:00 | 显示全部楼层
mark

出0入0汤圆

发表于 2009-9-23 13:35:30 | 显示全部楼层
很想研究

出0入0汤圆

发表于 2009-9-24 07:58:47 | 显示全部楼层
不错哦!!

出0入0汤圆

发表于 2009-12-13 13:44:14 | 显示全部楼层
很想弄个来研究 现在好像大家都没热情了

出0入0汤圆

发表于 2009-12-13 14:04:29 | 显示全部楼层
楼上,阳_具挺也是有时间限制的。哈

出0入0汤圆

发表于 2009-12-14 18:09:30 | 显示全部楼层
mark

出0入0汤圆

发表于 2010-3-12 14:52:56 | 显示全部楼层
ji

出0入0汤圆

发表于 2010-5-8 16:59:16 | 显示全部楼层
mark

出0入0汤圆

发表于 2011-1-19 17:39:58 | 显示全部楼层
cool

出0入0汤圆

发表于 2011-8-7 01:54:07 | 显示全部楼层
我也打算做这个 硬件线路给的比较混乱 至少我是看不懂 觉得用手头现成的Arduino的板子应该是可以实现的

出0入0汤圆

发表于 2011-8-10 10:08:45 | 显示全部楼层
MARK!

出0入0汤圆

发表于 2011-8-10 10:15:35 | 显示全部楼层
这个东西没什么实用价值

出0入0汤圆

发表于 2011-8-10 10:17:46 | 显示全部楼层
新鲜!

出0入0汤圆

发表于 2011-10-25 14:10:02 | 显示全部楼层
看看,谢谢

出0入0汤圆

发表于 2012-1-2 11:49:19 | 显示全部楼层
上拉悬浮的有看过几种电路,反馈方式可以用电磁感应、光感等

出0入0汤圆

发表于 2012-2-19 18:29:18 | 显示全部楼层
留着看

出0入0汤圆

发表于 2012-7-11 20:55:38 | 显示全部楼层
cool                                                                                      

出0入0汤圆

发表于 2013-10-31 17:55:15 | 显示全部楼层
arduino啊,2007年就有了,厉害

出0入0汤圆

发表于 2013-11-2 09:52:21 | 显示全部楼层
怎么能实现稳定呢?

出0入0汤圆

发表于 2013-11-4 19:33:48 | 显示全部楼层
怎么能稳定呢?

出0入0汤圆

发表于 2013-11-8 12:27:53 | 显示全部楼层
mark      

出130入20汤圆

发表于 2013-11-8 12:49:39 | 显示全部楼层
好玩,要是搞个超级大的那就拉风了

出0入0汤圆

发表于 2013-11-11 17:25:21 | 显示全部楼层
这东西怎么做到的啊....

出0入0汤圆

发表于 2013-11-21 09:01:30 | 显示全部楼层
再来学习学习

出0入0汤圆

发表于 2014-4-19 20:49:25 | 显示全部楼层
学习了。

出0入0汤圆

发表于 2014-11-10 12:17:14 | 显示全部楼层
感谢楼主分享了

出0入0汤圆

发表于 2014-11-10 22:38:43 | 显示全部楼层
来学习学习

出0入0汤圆

发表于 2014-11-10 23:53:59 | 显示全部楼层
谢谢分享!!!!!

出0入0汤圆

发表于 2014-11-11 02:30:11 | 显示全部楼层
这个真的高大上啊,学习了,感谢楼主分享

出0入36汤圆

发表于 2014-12-31 15:55:36 | 显示全部楼层
这个好酷啊,要是有套件就好了~
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-4-19 15:41

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表