fsclub 发表于 2007-6-20 14:30:57

磁悬浮玩具! MEGA168.

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.



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



http://cache.amobbs.com/bbs_upload782111/files_7/armok01158597.gif

PICTURE 发表于 2007-6-20 14:38:39

顶啊.这东东好好玩啊.

fsclub 发表于 2007-6-20 14:39:10

用关键字:Arduino找到了:



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



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

eblc1388 发表于 2007-6-20 15:30:36

这是来源的网站, 网页中 Electromagnetic Floater Program.zip 内有源程序及 HEX。



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

donkey 发表于 2007-6-20 16:59:26

没看明白,怎么让悬浮的物体稳定下来?

lalala 发表于 2007-6-20 17:11:21

原文资料不完整,尤其是硬件线路,很难搞成功。

ansion520 发表于 2007-6-20 19:50:30

好东东呀!顶一下!

lanshuitianxia 发表于 2007-6-20 21:09:23

好玩!

zhanying 发表于 2007-6-20 22:20:37

什么原理呢?

tigerwang202 发表于 2007-6-20 23:01:27

反馈控制系统,控制论的东西

http://cache.amobbs.com/bbs_upload782111/files_7/armok01158667.jpg

xiaojany 发表于 2007-6-20 23:50:33

好神奇啊

zcllsn 发表于 2007-6-21 07:33:02

漂亮啊

xiaobendan 发表于 2007-6-21 07:46:31

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

kite2006 发表于 2007-6-21 09:06:53

应该向楼上说的,这个东西用模拟电路就可以实现,用单片机反到麻烦了

fsclub 发表于 2007-6-21 09:52:57

找到源文件了,传了上来,喜欢的可以看看:



点击此处下载armok01158718.zip



原来的网站地址:

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

演示:

http://www.instructables.com/tag/keyword:Floater/

armok 发表于 2007-6-21 11:27:09

谢谢。

fsclub 发表于 2007-6-21 11:52:16

http://www.instructables.com/id/E04KZEEF2FRVEHF/?comments=all



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

点击此处下载armok01158737.rar

yplin27 发表于 2007-6-21 12:34:12

转成pdf

点击此处打开armok01158777.pdf

xiaobendan 发表于 2007-6-21 13:23:21

哦,我也下来看看

xiaobendan 发表于 2007-6-21 13:51:42

看不懂啊,工作过程给解释一下啊,还有程序用什么软件编译的,怎么没找到MAIN()函数?

wxfhw 发表于 2007-6-22 06:41:11

好玩!

wxfhw 发表于 2007-6-28 07:06:54

http://www.714e.com/bbs/dispbbs.asp?boardID=8&ID=830&page=1

类似的帖。

hc235280 发表于 2009-4-30 22:43:07

持续关注中,

armok 发表于 2009-4-30 22:46:13

谢谢。

fandipeng412 发表于 2009-4-30 23:01:21

原来很早就有人关注这个啦

qzzz 发表于 2009-5-1 16:17:32

有意思,期待大家的结果

xiao_dian_dian 发表于 2009-5-4 03:00:00

pid很多地方用啊

morine 发表于 2009-5-8 14:16:37

mark

mmttxx 发表于 2009-5-13 11:36:00

mark

zhanggli 发表于 2009-9-23 13:35:30

很想研究

mars_snow 发表于 2009-9-24 07:58:47

不错哦!!

qq_zhs 发表于 2009-12-13 13:44:14

很想弄个来研究 现在好像大家都没热情了

NJ8888 发表于 2009-12-13 14:04:29

楼上,阳_具挺也是有时间限制的。哈

ycii 发表于 2009-12-14 18:09:30

mark

yinhe 发表于 2010-3-12 14:52:56

ji

nosolo 发表于 2010-5-8 16:59:16

mark

ROBOT520 发表于 2011-1-19 17:39:58

cool

vzdemon 发表于 2011-8-7 01:54:07

我也打算做这个 硬件线路给的比较混乱 至少我是看不懂 觉得用手头现成的Arduino的板子应该是可以实现的

syzywc 发表于 2011-8-10 10:08:45

MARK!

wers_l 发表于 2011-8-10 10:15:35

这个东西没什么实用价值

dhy13 发表于 2011-8-10 10:17:46

新鲜!

moming9832 发表于 2011-10-25 14:10:02

看看,谢谢

starsnow 发表于 2012-1-2 11:49:19

上拉悬浮的有看过几种电路,反馈方式可以用电磁感应、光感等

sen67133933 发表于 2012-2-19 18:29:18

留着看

eryueniao 发表于 2012-7-11 20:55:38

cool                                                                                    

mahengyu 发表于 2013-10-31 17:55:15

arduino啊,2007年就有了,厉害

tlsmf 发表于 2013-11-2 09:52:21

怎么能实现稳定呢?

tlsmf 发表于 2013-11-4 19:33:48

怎么能稳定呢?

tlsmf 发表于 2013-11-8 12:27:53

mark      

shuiluo2 发表于 2013-11-8 12:49:39

好玩,要是搞个超级大的那就拉风了

CHEN1986 发表于 2013-11-11 17:25:21

这东西怎么做到的啊....

tlsmf 发表于 2013-11-21 09:01:30

再来学习学习

xuanfong1 发表于 2014-4-19 20:49:25

学习了。

上尉 发表于 2014-11-10 12:17:14

感谢楼主分享了

redchina 发表于 2014-11-10 22:38:43

来学习学习

雨中的风铃 发表于 2014-11-10 23:53:59

谢谢分享!!!!!

上尉 发表于 2014-11-11 02:30:11

这个真的高大上啊,学习了,感谢楼主分享

redworlf007 发表于 2014-12-31 15:55:36

这个好酷啊,要是有套件就好了~
页: [1]
查看完整版本: 磁悬浮玩具! MEGA168.