<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=BLK_IO</id>
	<title>BLK IO - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=BLK_IO"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=BLK_IO&amp;action=history"/>
	<updated>2026-06-04T20:00:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://w.electrodragon.com/w/index.php?title=BLK_IO&amp;diff=19440&amp;oldid=prev</id>
		<title>Chao: /* Control Commands */</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=BLK_IO&amp;diff=19440&amp;oldid=prev"/>
		<updated>2018-05-11T05:41:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Control Commands&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Control Commands ==&lt;br /&gt;
[[File:2018-05-11 134040.png|400px|right]]&lt;br /&gt;
* Pin Definition&lt;br /&gt;
* All pins connect to ground pin of LED&lt;br /&gt;
* All commands should be end up with \r\n&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin !! MCU PIN !! v1.1 Command !! v1.0 Command !! Note !! V1.1 Custom &lt;br /&gt;
|-&lt;br /&gt;
| 1 || PB5 || 1N - 1F || N1 - F1 || &lt;br /&gt;
|-&lt;br /&gt;
| 2 || PB4 || 2N - 2F ||  N2 - F2 || &lt;br /&gt;
|-&lt;br /&gt;
| 3 || PC3 || 3N - 3F ||  N3 - F3 || &lt;br /&gt;
|-&lt;br /&gt;
| 4 || PC4 || 4N - 4F ||  N4 - F4 || &lt;br /&gt;
|-&lt;br /&gt;
| 5 || PC5 || 5N - 5F ||  N5 - F5 || &lt;br /&gt;
|-&lt;br /&gt;
| 6 || PC6 || 6N - 6F ||  N6 - F6 || &lt;br /&gt;
|-&lt;br /&gt;
| 7 || PC7 || 7N - 7F ||  N7 - F7 || &lt;br /&gt;
|-&lt;br /&gt;
| 8 || PD3 || 8N - 8F ||  N8 - F8 || Also BL status LED pin (1)&lt;br /&gt;
|-&lt;br /&gt;
| 9 || PD2 || 9N - 9F ||  N9 - F9 || || Set as input, connect to GND trigger send message&lt;br /&gt;
|-&lt;br /&gt;
| 0 || PD4 || 0N - 0F ||  N0 - F0 ||  || Set as input, connect to GND trigger send message&lt;br /&gt;
|-&lt;br /&gt;
| A || PA1 || AN - AF ||  NA - FA || &lt;br /&gt;
|-&lt;br /&gt;
| B || PA2 || BN - BF ||  NB - FB || &lt;br /&gt;
|-&lt;br /&gt;
| C || PA3 || CN - CF ||  NC - FC || &lt;br /&gt;
|}&lt;br /&gt;
# When Bluetooth made connection, BT status LED will keep constant high, you can not write it low, notice. But you can read the BT status via this pin.&lt;br /&gt;
&lt;br /&gt;
== Serial Debuging ==&lt;br /&gt;
* To receive MCU Debug Info, so USB-TTL &amp;lt;&amp;gt; MCU &lt;br /&gt;
* Use USB-TTL Debug tool, for example PL2303 TX (Green Color), RX (White Color)&lt;br /&gt;
* TX/G to right top pin, RX/W to right top second pin&lt;br /&gt;
* To receive phone bluetooth end message, vice verse connection.&lt;br /&gt;
=== Debug Note ===&lt;br /&gt;
* Do not connect serial cable when send commands remote from phone, will block message.&lt;br /&gt;
* Some module baudrate is 9600, 115200, 38400.&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Bluetooth|Recommanded control phone APP see on this page.]]&lt;br /&gt;
* [[:File:BLIO.zip|IAR for STM8 demo code available here.]]&lt;br /&gt;
&lt;br /&gt;
== Code Update ==&lt;br /&gt;
&lt;br /&gt;
* V1.12 get here [[File:BLKIOV1.1.hex.zip]]&lt;br /&gt;
* V1.12 fixed button delay bug&lt;br /&gt;
* V1.1 Custom Support PD2 PD4 as input, send message to bluetooth phone&lt;br /&gt;
&lt;br /&gt;
== Schematic ==&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Blk_io_sch.png | BLK IO SCH&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== On Board Bluetooth Module ED-30 ==&lt;br /&gt;
* to change name -&amp;gt; AT+NAME&amp;lt;Param&amp;gt;&lt;br /&gt;
* to change pin -&amp;gt; AT+PIN&amp;lt;Param&amp;gt;&lt;br /&gt;
* to change baudrate -&amp;gt; AT+BAUD&amp;lt;Param&amp;gt;; &amp;lt;Param&amp;gt; from 1~C, 1: 1200, C: 1382400, 4: 9600, 8: 115200, 6: 38400&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category: Bluetooth]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>