Skip to content

Commit

Permalink
add c3 mini v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wemos committed Sep 13, 2022
1 parent b8b80b9 commit a0eb799
Show file tree
Hide file tree
Showing 8 changed files with 161 additions and 85 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/_static/boards/c3_mini_v2.1.0_4_16x9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/_static/files/sch_c3_mini_v2.1.0.pdf
Binary file not shown.
31 changes: 15 additions & 16 deletions docs/en/c3/c3_mini.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ C3 mini
|TOP_IMG|_ |BOTTOM_IMG|_
================== ==================

.. |TOP_IMG| image:: ../_static/boards/c3_mini_v1.0.0_1_16x16.jpg
.. _TOP_IMG: ../_static/boards/c3_mini_v1.0.0_1_16x16.jpg
.. |TOP_IMG| image:: ../_static/boards/c3_mini_v2.1.0_1_16x16.jpg
.. _TOP_IMG: ../_static/boards/c3_mini_v2.1.0_1_16x16.jpg

.. |BOTTOM_IMG| image:: ../_static/boards/c3_mini_v1.0.0_2_16x16.jpg
.. _BOTTOM_IMG: ../_static/boards/c3_mini_v1.0.0_2_16x16.jpg
.. |BOTTOM_IMG| image:: ../_static/boards/c3_mini_v2.1.0_2_16x16.jpg
.. _BOTTOM_IMG: ../_static/boards/c3_mini_v2.1.0_2_16x16.jpg

A mini wifi & Bluetooth5 (LE) boards based ESP32-C3FH4.
`[Buy it]`_
Expand All @@ -22,6 +22,7 @@ Features
* Type-C USB
* 4MB Flash
* 12x IO
* 1x WS2812B RGB LED
* ADC, I2C, SPI, UART
* Compatible with LOLIN D1 mini shields
* Compatible with MicroPython, Arduino, CircuitPython and ESP-IDF
Expand All @@ -37,17 +38,10 @@ Tutorials
Documentation
----------------------

* `Schematic V1.0.0[PDF] <../_static/files/sch_c3_mini_v1.0.0.pdf>`_
* `Dimension V1.0.0[PDF] <../_static/files/dim_c3_mini_v1.0.0.pdf>`_
* `Schematic V2.1.0[PDF] <../_static/files/sch_c3_mini_v2.1.0.pdf>`_
* `Dimension V2.1.0[PDF] <../_static/files/dim_c3_mini_v1.0.0.pdf>`_
* `ESP32-C3 Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-c3_datasheet_en.pdf>`_

About WIFI
----------------------
You need set WIFI Tx Power to 8.5dBm to use WIFI.


* `Arduino <../tutorials/c3/get_started_with_arduino_c3.html#wifi>`_
* `MicroPython <../tutorials/c3/get_started_with_micropython_c3.html#wifi>`_

Technical specs
----------------------
Expand All @@ -63,12 +57,17 @@ Technical specs
+----------------------+------------+
| Size | 34.3*25.4mm|
+----------------------+------------+
| Weight | 2.4g |
| Weight | 2.6g |
+----------------------+------------+

Pin
----------------------

.. image:: ../_static/boards/c3_mini_v1.0.0_4_16x9.jpg
:target: ../_static/boards/c3_mini_v1.0.0_4_16x9.jpg
.. image:: ../_static/boards/c3_mini_v2.1.0_4_16x9.png
:target: ../_static/boards/c3_mini_v2.1.0_4_16x9.png

Version
----------------
* `V2.1.0 <c3_mini.html>`_ *lastest version*
* `V1.0.0 <c3_mini_v1_0_0.html>`_

146 changes: 146 additions & 0 deletions docs/en/c3/c3_mini_v_1_0_0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
C3 mini v1.0.0
================

================== ==================
|TOP_IMG|_ |BOTTOM_IMG|_
================== ==================

.. |TOP_IMG| image:: ../_static/boards/c3_mini_v1.0.0_1_16x16.jpg
.. _TOP_IMG: ../_static/boards/c3_mini_v1.0.0_1_16x16.jpg

.. |BOTTOM_IMG| image:: ../_static/boards/c3_mini_v1.0.0_2_16x16.jpg
.. _BOTTOM_IMG: ../_static/boards/c3_mini_v1.0.0_2_16x16.jpg

A mini wifi & Bluetooth5 (LE) boards based ESP32-C3FH4.
`[Buy it]`_

.. _[Buy it]: https://www.aliexpress.com/item/1005004005736554.html

Features
------------------
* based ESP32-C3 WIFI & Bluetooth LE RISC-V Single-Core CPU
* Type-C USB
* 4MB Flash
* 12x IO
* ADC, I2C, SPI, UART
* Compatible with LOLIN D1 mini shields
* Compatible with MicroPython, Arduino, CircuitPython and ESP-IDF
* Default firmware: MicroPython

Tutorials
----------------------

* :doc:`../tutorials/c3/get_started_with_micropython_c3`
* :doc:`../tutorials/c3/get_started_with_arduino_c3`
* :doc:`../tutorials/c3/get_started_with_circuitpython_c3`

Documentation
----------------------

* `Schematic V1.0.0[PDF] <../_static/files/sch_c3_mini_v1.0.0.pdf>`_
* `Dimension V1.0.0[PDF] <../_static/files/dim_c3_mini_v1.0.0.pdf>`_
* `ESP32-C3 Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-c3_datasheet_en.pdf>`_

About WIFI
----------------------
You need set WIFI Tx Power to 8.5dBm to use WIFI.


Arduino
**************

Use **WiFi.setTxPower(WIFI_POWER_8_5dBm)** after
**WiFi.begin()** or **WiFi.softAP()**

.. code-block:: arduino
WiFi.begin(ssid, password);
WiFi.setTxPower(WIFI_POWER_8_5dBm);
.. code-block:: arduino
WiFi.softAP(ssid, password);
WiFi.setTxPower(WIFI_POWER_8_5dBm);
**simple test:**

.. code-block:: arduino
#include <WiFi.h>
const char* ssid = "yourssid";
const char* password = "yourpasswd";
void setup() {
Serial.begin(115200);
delay(1000);
Serial.println("Connecting...");
WiFi.mode(WIFI_STA);
WiFi.disconnect();
WiFi.begin(ssid, password);
WiFi.setTxPower(WIFI_POWER_8_5dBm);
while (WiFi.status() != WL_CONNECTED){
Serial.print(".");
delay(500);
}
Serial.println("Connected");
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {
}
MicroPython
**********************

Use **sta_if.config(txpower=8.5)** after **sta_if.active(True)**

.. code-block:: python
def do_connect():
import network
sta_if = network.WLAN(network.STA_IF)
if not sta_if.isconnected():
print('connecting to network...')
sta_if.active(True)
sta_if.config(txpower=8.5)
sta_if.connect('ssid', 'passwd')
while not sta_if.isconnected():
pass
print('network config:', sta_if.ifconfig())
Technical specs
----------------------

+----------------------+------------+
| Operating Voltage | 3.3V |
+----------------------+------------+
| Digital I/O Pins | 12 |
+----------------------+------------+
| Clock Speed | 160MHz |
+----------------------+------------+
| Flash | 4M Bytes |
+----------------------+------------+
| Size | 34.3*25.4mm|
+----------------------+------------+
| Weight | 2.4g |
+----------------------+------------+

Pin
----------------------

.. image:: ../_static/boards/c3_mini_v1.0.0_4_16x9.jpg
:target: ../_static/boards/c3_mini_v1.0.0_4_16x9.jpg

Version
----------------
* `V2.1.0 <c3_mini.html>`_ *lastest version*
* `V1.0.0 <c3_mini_v1_0_0.html>`_

48 changes: 0 additions & 48 deletions docs/en/tutorials/c3/get_started_with_arduino_c3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,55 +25,7 @@ Upload Code
* Press **Button Reset**
* Release **Button 9** When you hear the prompt tone on usb reconnection

WIFI
-----------------
You need set WIFI Tx Power to 8.5dBm to use WIFI.

Use **WiFi.setTxPower(WIFI_POWER_8_5dBm)** after
**WiFi.begin()** or **WiFi.softAP()**

.. code-block:: arduino
WiFi.begin(ssid, password);
WiFi.setTxPower(WIFI_POWER_8_5dBm);
.. code-block:: arduino
WiFi.softAP(ssid, password);
WiFi.setTxPower(WIFI_POWER_8_5dBm);
**simple test:**

.. code-block:: arduino
#include <WiFi.h>
const char* ssid = "yourssid";
const char* password = "yourpasswd";
void setup() {
Serial.begin(115200);
delay(1000);
Serial.println("Connecting...");
WiFi.mode(WIFI_STA);
WiFi.disconnect();
WiFi.begin(ssid, password);
WiFi.setTxPower(WIFI_POWER_8_5dBm);
while (WiFi.status() != WL_CONNECTED){
Serial.print(".");
delay(500);
}
Serial.println("Connected");
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
}

void loop() {
}

Documentation
-------------------------
Expand Down
21 changes: 0 additions & 21 deletions docs/en/tutorials/c3/get_started_with_micropython_c3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,6 @@ Flash firmware
In Windows, **PORT_NAME** is like COM4.


WIFI
------------------
You need set WIFI Tx Power to 8.5dBm to use WIFI.

Use **sta_if.config(txpower=8.5)** after **sta_if.active(True)**

.. code-block:: python
def do_connect():
import network
sta_if = network.WLAN(network.STA_IF)
if not sta_if.isconnected():
print('connecting to network...')
sta_if.active(True)
sta_if.config(txpower=8.5)
sta_if.connect('ssid', 'passwd')
while not sta_if.isconnected():
pass
print('network config:', sta_if.ifconfig())
Quick reference
-------------------------
* `Quick reference for the ESP32 <https://docs.micropython.org/en/latest/esp32/quickref.html>`_
Expand Down

0 comments on commit a0eb799

Please sign in to comment.