|

楼主 |
发表于 9-12-2012 01:09 PM
|
显示全部楼层
现在把14樓的Sketch,#define fadeSpeed更换至20,再按照8樓的方法把Sketch上载至ATTiny85(记得把Arduino 软件换成V0023版本或以下),
完成上载后,你会看到两行以错误,那是没问题的。
avrdude: please define PPAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: please define PPAGEL and BS2 signals in the configuration file for part ATtiny85
现在Tiny Arduino运行8Mhz,顺畅很多了。
更快的时钟(Clock)表示更消耗功率,尤其使用太阳能和电池时,我们需要更低的时钟以便节省一些电源。这里我们又得把8Mhz转换回1Mhz。
- 按照18楼的步骤,但选择Attiny85 (internal 1MHz clock)
- 重复19楼至20楼步骤
这样ATtiny85的clock又变回1Mhz了
本帖最后由 西门庆33 于 9-12-2012 01:27 PM 编辑
|
|
|
|
|
|
|
|

楼主 |
发表于 5-1-2013 09:55 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 6-1-2013 10:08 AM
|
显示全部楼层
想问下,最经济+简单的 Input 器材会是什么呢?Output因该是LED属最简单了吧。
抱歉,我真的不知道电子器材的价钱/实用性。
或有没任何网页可参考? |
|
|
|
|
|
|
|

楼主 |
发表于 6-1-2013 12:42 PM
|
显示全部楼层
xFreaKx 发表于 6-1-2013 10:08 AM 
想问下,最经济+简单的 Input 器材会是什么呢?Output因该是LED属最简单了吧。
抱歉,我真的不知道电子器材 ...
Input有很多种,可以是传感器(Sensor),触摸屏(Touch Screen),键盘(Keyboard),滑鼠(Mouse)等等,你的Input 器材是指什么呢?还是你想要一个设备(Device)来侦察Input?
|
|
|
|
|
|
|
|
发表于 6-1-2013 01:44 PM
|
显示全部楼层
hmm..只是想知道 传感器(Sensor) 大概有几种,比较经济/简单使用的是哪种..
没关系,这我应该到 买卖商场 去找才对... |
|
|
|
|
|
|
|

楼主 |
发表于 6-1-2013 02:13 PM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 21-1-2013 01:35 AM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 18-2-2013 10:48 PM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 8-5-2013 03:48 PM
|
显示全部楼层
Tiny Arduino 印刷电路板
Tiny Arduino 本身已经很简单,一般上使用洞洞板来焊接非常方便。当然也可以自制印刷电路板,考验一下自己的功夫,完成了的作品将会比较漂亮
下载
文件里除了pdf文件,还包含了Eagle 印刷电路板(Eagle PCB)和Eagle电路图(Eagle SCH),方便修改。
建议使用toner transfer方式印制电路板
本帖最后由 西门庆33 于 8-5-2013 03:49 PM 编辑
|
|
|
|
|
|
|
|

楼主 |
发表于 8-5-2013 07:15 PM
|
显示全部楼层
Tiny Arduino实现串口沟通
Tiny Arduino本身没有串口引脚与外界沟通,因此只能使用软件串行代替之。
从Arduino 1.0,NewSoftSerial代替了SoftwareSerial成为官方支持的软件串行程序库(software serial library)。另外NewSoftSerial也改进了许多功能,例如使用了中断(interrupt)和计时器(timer),从而提高效率,具体请阅读A New Software Serial Library for Arduino
与硬体串口(hardware serial)相比,NewSoftSerial存在以下弱点。
- 比较消耗资源
- Baud rate最高值为28800,建议使用9600或更低
- 代码增加了大约2000bytes
注意:
如果使用RC振荡(没有使用crystal),Baud rate最高值只能是9600
NewSoftSerial代码示范
懒惰拍照,在网站抓了一个相似的图象
- // software serial example for ATtiny!
- #include <SoftwareSerial.h>
- //receive(RX) on "0"(ATTiny45/85 PIN2), transmit(TX) on "1"(ATTiny45/85 PIN3)
- SoftwareSerial mySerial(0, 1); // RX, TX
- void setup()
- {
- // set the data rate for the SoftwareSerial port
- mySerial.begin(4800);
- mySerial.println("Software Serial Demo"); //send message to serial port
- }
- void loop() // run over and over
- {
- mySerial.println(millis()); //send milli second to serial port
- }
复制代码 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|