4

除了Arduino之外,还有哪些方法可以动手学习硬件编程?是否有任何漂亮的套件可用,或者是预组装的机器人,您可以编程以某种方式移动,或做某些事情,或类似的东西?

4

6 回答 6

5

Atmel AVR 和PIC都有实验板,您可以在上面使用焊料,通常它们有几个按钮和一些预焊到该区域的灯。这让您可以对微处理器进行编程/闪存并使用输出引脚。您可以用汇编或 C 语言编写程序。

Parallax 有许多套件。他们有两条适合“玩耍”的产品线,Basic Stamp和称为Propeller的产品。前者是一个小型微处理器,运行用 Basic 编写的程序(有点恶心;)),后者运行称为 Spin 或汇编的东西(显然在编译之后。)

我会选择 AVR 或 PIC。我做过 PIC,但我听说过关于 AVR 的好消息,它们似乎附带了更好的软件。

于 2009-08-09T22:14:20.877 回答
3

At first look Microsoft's VPL sounds good, but when it comes to actually LEARNING how hardware works it goes a LONG way to hide those details from you. As a matter of fact it is pretty much designed for people who don't program, and is distastful to someone who's actually written embedded software. IF you just want to make stuff happen and not delve into the details it's fine, but if you want to get down to the metal like programming the "Arduino" boards it's not for you.

If you're used to something like the Arduino then something like the PIC will be an easy transistion. SparcFun Electronics has all sorts of DIY type projects and hardware available. If you have a decent bookstore around your area, I would suggest looking for "Circuit Cellar" magazine. It has articles on a monthly basis with project for someone looking to get into hardware projects, everything from homebrew Software Defined Radio to FPGA based 3D graphics. (Raytracing actually) Usually the authors describe the project in an article and "WHY" they made the decisions they did, a description and schematics of the hardware and provide a link to source code.

Cypress Semiconductor has one of the most interesting embedded processors on the market and several high quality dev boards for sale. The PSoC includes the ability to not only configure the software, but also to "drop in" software configured hardware such Analog to digital converters, serial I/O, Digital to Analog and Various amps and filters. It's a REALLY cool concept, and the "touch sensor" capability of the PSoC were actually used in several models of the IPod.

One thing about programming these little micros is they don't have a lot between you and the hardware, you get to see how things really work. It doesn't matter whether you're talking about an 8-bit microcontroller or a quad-core Pentium programming hardware is largely the same concept. You write to a memory mapped register for some piece of hardware like a serial controller, and the hardware responds in someway. If you program a baudrate generator in a PIC or PC it's largely the same idea, you write a value that will be used as a division factor from a given clock to achive a given baudrate. The numbers and names maybe different, but the concepts is the same. On a PC you may have to map to the PCI address of the card, which adds a some complications, but if you looked underneath the OS you would see that that was done just by writing values to registers simalar to programming a PIC to use a different "Page" of memory. Is it worth learning an 8-bitter? Well, there are approximately $5 billion dollars in sales of the little 8-bit micros today with projection only showing growth in that market in the future. I saw one reference that state the average car has 25 Microcontrollers in it. That's not too bad.

于 2009-08-09T23:34:53.240 回答
2

我玩的不多,但iRobot看起来很酷。

模拟机器人将如何工作的能力,其中提到的其他一些答案很好,但是没有什么比看到现实生活中的机器人做你编程它做的事情更好的了。对我来说,这才是真正让机器人变得有趣和酷的原因。

于 2009-08-09T22:24:26.317 回答
0

.NET 微框架。

使用/设置非常简单,并且针对此框架制造了许多硬件。

于 2009-08-09T22:09:30.310 回答
0

您应该看看支持许多不同套件的Microsoft Robotics Developer Studio 。

于 2009-08-09T22:10:14.270 回答
0

我一直对口香糖很好奇。看起来比arduino更专业,针对的是Linux程序员。我不能给你一个真正的建议,因为我从来没有玩过它,但如果我必须学习一些很酷的硬件编程,我肯定会选择其中一个玩具。

于 2009-08-15T18:14:02.213 回答