'embeded'에 해당되는 글 1340건

  1. 2023.12.07 433MHz RF 통신
  2. 2023.12.04 esp8266 SDK
  3. 2023.12.04 esp8266 microUSB 연결
  4. 2023.12.03 esp8266
  5. 2023.11.30 esp32-cam lcd 달기 2
  6. 2023.11.30 esp32cam / esp wroom 32 - pinout
  7. 2023.11.30 esp32 bt hid
  8. 2023.11.18 esp32-cam에 lcd 달기
  9. 2023.11.18 risc-v sv39
  10. 2023.11.18 milk-v duo(risc-v)
embeded/arduino(genuino)2023. 12. 7. 23:25

싸고 좋은건 없다지만.. 

ISM 대역으로 저렴하면서 멀리까지 나쁘지 않은 속도로 통신이 가능한 모듈이 정말 없다는게 함정..

RX/TX 셋트로 만원인데 문제는 RX/TX가 아니라 RX 와 TX라서

양방향은 안된다는 의미겠구먼..

 

[링크 : https://kocoafab.cc/tutorial/view/218]

[링크 : https://m.eleparts.co.kr/goods/view?no=7666780]

 

'embeded > arduino(genuino)' 카테고리의 다른 글

arducam esp8266 https post 예제  (0) 2024.01.31
mcp2515 can  (0) 2023.10.30
아두이노 dht11  (0) 2022.11.14
아두이노 Serial.print()와 Serial.write()  (0) 2022.11.14
아두이노 USB HID  (0) 2021.05.07
Posted by 구차니
embeded/eps82662023. 12. 4. 14:09

 

[링크 : https://nodemcu.readthedocs.io/en/release/]

[링크 : https://github.com/espressif/ESP8266_NONOS_SDK]

 

[링크 : https://github.com/nodemcu/nodemcu-devkit-v1.0]

 

보드의 FLASH 버튼을 LOW로 한 채로 켜야 하는 듯.(즉, 전원 넣기 전에 누르고 있어야 한단 의미)

Just click flash and you can burn firmware to ESP8266. Before you doing it, GPIO0 MUST LOW.

[링크 : https://github.com/nodemcu/nodemcu-flasher] 윈도우용 플래시 퓨징 프로그램

[링크 : https://github.com/nodemcu/nodemcu-firmware]  

 

[링크 : https://github.com/marcelstoer/nodemcu-pyflasher]  pyFlasher

  [링크 : https://nodemcu.readthedocs.io/en/latest/flash/]

[링크 : https://www.best-microcontroller-projects.com/nodemcu-firmware.html]

 

'embeded > eps8266' 카테고리의 다른 글

esp8266 esptool.py  (0) 2023.12.11
esp8266 microUSB 연결 2  (0) 2023.12.11
esp8266 arduino  (0) 2023.12.09
esp8266 microUSB 연결  (0) 2023.12.04
esp8266  (0) 2023.12.03
Posted by 구차니
embeded/eps82662023. 12. 4. 13:37

flash 버튼 누른채로 usb 연결하면 아래와 같이 먼가 나오는데

기존의 cp210x를 죽여버리고 ch341은 연결하는 느낌이다.

 

$ lsusb -t -v
    |__ Port 3: Dev 59, If 0, Class=Vendor Specific Class, Driver=, 12M
        ID 1a86:7523 QinHeng Electronics CH340 serial converter

 

$ sudo dmesg
[1473116.242277] usb 1-3: new full-speed USB device number 59 using xhci_hcd
[1473116.391455] usb 1-3: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54
[1473116.391473] usb 1-3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[1473116.391479] usb 1-3: Product: USB2.0-Ser!
[1473116.431662] usbcore: registered new interface driver ch341
[1473116.431675] usbserial: USB Serial support registered for ch341-uart
[1473116.431693] ch341 1-3:1.0: ch341-uart converter detected
[1473116.432077] ch341-uart ttyUSB2: break control not supported, using simulated break
[1473116.432166] usb 1-3: ch341-uart converter now attached to ttyUSB2
[1473116.503795] input: PC Speaker as /devices/platform/pcspkr/input/input82
[1473117.030963] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input83
[1473117.156864] usb 1-3: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[1473117.157672] ch341-uart ttyUSB2: ch341-uart converter now disconnected from ttyUSB2
[1473117.157738] ch341 1-3:1.0: device disconnected
[1473117.174250] usb 1-2.4.2: usbfs: interface 0 claimed by cp210x while 'brltty' sets config #1
[1473117.178085] cp210x ttyUSB1: cp210x converter now disconnected from ttyUSB1
[1473117.178151] cp210x 1-2.4.2:1.0: device disconnected

'embeded > eps8266' 카테고리의 다른 글

esp8266 esptool.py  (0) 2023.12.11
esp8266 microUSB 연결 2  (0) 2023.12.11
esp8266 arduino  (0) 2023.12.09
esp8266 SDK  (0) 2023.12.04
esp8266  (0) 2023.12.03
Posted by 구차니
embeded/eps82662023. 12. 3. 11:22

 

위조부품인가 왜 마킹이 지워진 흔적이 있지?

LDO는 1117

 

nodeMCU v3

[링크 : https://nodemcu.readthedocs.io/en/release/]

[링크 : https://github.com/nodemcu/nodemcu-firmware]

 

 

 

[링크 : https://www.embedic.com/technology/details/esp32-vs-esp8266--which-is-better-and-how-to-choose]

[링크 : https://makeradvisor.com/esp32-vs-esp8266/]

 

 

 

cp2102칩이 좀 더 작고, ch340이라 드라이버 설치이야기가 나오는 듯

[링크 : https://ko.aliexpress.com/item/1005001636634198.html]

'embeded > eps8266' 카테고리의 다른 글

esp8266 esptool.py  (0) 2023.12.11
esp8266 microUSB 연결 2  (0) 2023.12.11
esp8266 arduino  (0) 2023.12.09
esp8266 SDK  (0) 2023.12.04
esp8266 microUSB 연결  (0) 2023.12.04
Posted by 구차니
embeded/esp322023. 11. 30. 14:41

먼가 좀 구매할게 생겨서 찾아보다 보니 LCD가 싸게 나왔는데

전에 찾았던 IL 머시기랑은 다른 컨트롤러 같아서 조사중

 

 

1.44 128x128 4200원

[링크 : http://itempage3.auction.co.kr/DetailView.aspx?itemno=D424239712]

 

1.8 128x160 8000원

[링크 : http://itempage3.auction.co.kr/DetailView.aspx?itemno=C699518958]

 

어라 위의 1.8인치에 SD 카드 달린 것도 ST7735로 꾸며진건가?

[링크 : http://www.lcdwiki.com/1.8inch_SPI_Module_ST7735S_SKU:MSP1803]

 

장한 adafruit 에서 ST7735 용으로도 만들어 놨으니 쓸 수 있을 듯

#define TFT_MOSI 13
#define TFT_SCLK 14
#define TFT_CS   15  // Chip select control pin
#define TFT_DC    2  // Data Command control pin
#define TFT_RST   12
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);

[링크 : https://www.survivingwithandroid.com/esp32-cam-tft-display-picture-st7735/]

 

Sitronix ST7735S 132RGB x 162dot 262K color 드라이버

대충 132x162 지원되는 녀석이라고 보면 되나?

[링크 : https://www.waveshare.com/w/upload/e/e2/ST7735S_V1.1_20111121.pdf]

'embeded > esp32' 카테고리의 다른 글

esp32-s2 adc  (0) 2023.12.11
esp32 oled i2c  (0) 2023.12.11
esp32cam / esp wroom 32 - pinout  (0) 2023.11.30
esp32 bt hid  (0) 2023.11.30
esp32-cam에 lcd 달기  (0) 2023.11.18
Posted by 구차니
embeded/esp322023. 11. 30. 14:26

esp32cam 에서 핀이 몇개나 쓸 수 있나 싶었는데

adc도 많고 gpio도 많지만 절대적인 핀의 갯수는 확실히 적어서 좀 아쉽다.

 

 

 

[링크 : https://mischianti.org/wp-content/uploads/2020/09/ESP32-CAM-pinout-mischianti.jpg]

[링크 : https://mischianti.org/esp32-cam-pinout-specs-and-arduino-ide-configuration-1/]

 

30핀 버전

 

36핀 버전

[링크 : https://www.electronicshub.org/esp32-pinout/]

 

wroom-32 보드가 esp32cam 보다 약간 싸니까 새로 사서 가지고 놀아볼까?

거의 모든 핀이 adc가 된다는게 엄청난 매력이구만. 엥 그 와중에 DAC가 있어?!

그럼 사야지 ㅋㅋㅋ

'embeded > esp32' 카테고리의 다른 글

esp32 oled i2c  (0) 2023.12.11
esp32-cam lcd 달기 2  (0) 2023.11.30
esp32 bt hid  (0) 2023.11.30
esp32-cam에 lcd 달기  (0) 2023.11.18
xtensa lx6 instruction set  (0) 2023.03.13
Posted by 구차니
embeded/esp322023. 11. 30. 14:19

조이스틱 한번 만들어 보고 싶어서

기존의 gear VR with controller 의 컨트롤러 처럼 무선으로 해보고 싶다 생각에

조이스틱이랑 조합을 해보려고 하니

아뿔싸 -_-!! 블루투스가 문제네? 싶어서 고민해보니

esp32에 ble / wifi가 있으니 이걸 쓰면 되겠다 싶다.

라즈베리 파이 피코 W 도 나쁜 생각은 아니지만 지금 가지고 있진 않으니..

(어짜피 esp32-cam이라서 카메라 안쓸꺼면 사야하는건 똑같네 -_-)

 

esp32 ble hid 키보드

[링크 : https://m.blog.naver.com/mapes_khkim/221878225568]

 

esp32 hid joystick. (블루투스 페어링이 되어야 한다)

[링크 : https://github.com/wolfeidau/esp32-hid-joystick]

 

 Button press (128 buttons)
 Button release (128 buttons)
 Axes movement (6 axes (configurable resolution up to 16 bit) (x, y, z, rZ, rX, rY) --> (Left Thumb X, Left Thumb Y, Right Thumb X, Right Thumb Y, Left Trigger, Right Trigger))
 2 Sliders (configurable resolution up to 16 bit) (Slider 1 and Slider 2)
 4 point of view hats (ie. d-pad plus 3 other hat switches)
 Simulation controls (rudder, throttle, accelerator, brake, steering)
 Special buttons (start, select, menu, home, back, volume up, volume down, volume mute) all disabled by default
 Configurable HID descriptor
 Configurable VID and PID values
 Configurable BLE characteristics (name, manufacturer, model number, software revision, serial number, firmware revision, hardware revision)
 Report optional battery level to host
 Uses efficient NimBLE bluetooth library
 Compatible with Windows
 Compatible with Android (Android OS maps default buttons / axes / hats slightly differently than Windows)
 Compatible with Linux (limited testing)
 Compatible with MacOS X (limited testing)
 Compatible with iOS (No - not even for accessibility switch - This is not a “Made for iPhone” (MFI) compatible device)

[링크 : https://github.com/lemmingDev/ESP32-BLE-Gamepad]

[링크 :  https://www.instructables.com/ESP32-BLE-GamePad/]

'embeded > esp32' 카테고리의 다른 글

esp32-cam lcd 달기 2  (0) 2023.11.30
esp32cam / esp wroom 32 - pinout  (0) 2023.11.30
esp32-cam에 lcd 달기  (0) 2023.11.18
xtensa lx6 instruction set  (0) 2023.03.13
esp32cam ptz 카메라 완료  (0) 2021.12.30
Posted by 구차니
embeded/esp322023. 11. 18. 22:36

spi로 된 lcd를 달면 어떻게 되긴 되는 듯

VSPI가 카메라에서 사용중이라 HSPI를 써야 한다고 한다.

[링크 : https://blog.naver.com/mapes_khkim/221893783364]

 

SPI0, SPI1은 플래시용 (사용자 사용불가)

SPI2(hspi), SPI3(vspi)

[링크 : https://devicein.tistory.com/entry/ESP32-SPI-설정-관련-팁]

 

HSPI는 17~24번 사이에 있고

VSPI는 34~42번 사이에 있는 듯.

3.8.2 Serial Peripheral Interface (SPI)
ESP32 features three SPIs (SPI, HSPI and VSPI) in slave and master modes in 1-line full-duplex and 1/2/4-line
half-duplex communication modes. These SPIs also support the following general-purpose SPI features:
• Four modes of SPI transfer format, which depend on the polarity (CPOL) and the phase (CPHA) of the SPI clock
• Up to 80 MHz (The actual speed it can reach depends on the selected pads, PCB tracing, peripheral characteristics, etc.)
• up to 64-byte FIFO All SPIs can also be connected to the external flash/SRAM and LCD. Each SPI can be served by DMA controllers.


[링크 : https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf]

 

gpio matrix를 거칠수도 있고 아닐수도 있는데 spi2(hspi) spi3(vspi)는 속도에서 차이가 없나?



Controllers SPI2 and SPI3 use signal buses starting with “HSPI” and “VSPI” respectively

[링크 : https://www.espressif.com/sites/default/files/documentation/esp32_technical_reference_manual_en.pdf#spi]

 

대충보기에는 이 제품인것 같은데

ILI9341C 칩이면 되려나?

[링크 : https://www.11st.co.kr/products/3126317068] 2.2인치 / 24,000

[링크 : https://www.11st.co.kr/products/pa/4440530323] 2.8인치 터치 / 32,030

 

+

// VSPI (default under Arduino)
    SPIClass  SPI1(VSPI);
    Adafruit_ILI9341 tft0 = Adafruit_ILI9341(&SPI1, VSP_DC, VSP_CS, VSP_RST);

  // HSPI 
    SPIClass  SPI2(HSPI);
    Adafruit_ILI9341 tft1 = Adafruit_ILI9341(&SPI2, HSP_DC, HSP_CS, HSP_RST);

[링크 : https://www.youtube.com/watch?v=UUsP7u4vkN0]

'embeded > esp32' 카테고리의 다른 글

esp32cam / esp wroom 32 - pinout  (0) 2023.11.30
esp32 bt hid  (0) 2023.11.30
xtensa lx6 instruction set  (0) 2023.03.13
esp32cam ptz 카메라 완료  (0) 2021.12.30
esp32 servo와 flash  (0) 2021.11.28
Posted by 구차니
embeded/risc-v2023. 11. 18. 07:49

milk-v 에서 리눅스 된다고 해서

uclinux인가 했는데 그건 또 아닌것 같은 느낌이라 찾아보는데

 

devicetree에 아래와 같은게 있어서 찾아보는 중

isa는 RV64IMAFDC 인데 MMU type에 sv39 라는게 추가된다.

                        mmu-type = "riscv,sv39";
                        next-level-cache = <&L15 &L0>;
                        reg = <1>;
                        riscv,isa = "rv64imafdc";

 

[링크 : https://github.com/riscv-non-isa/riscv-device-tree-doc/blob/master/bindings/riscv/cpus.txt]

 

isa에 H/S가 없어도 MMU 자체는 그냥 지원이 가능하다는 말 같기도 한데,

SV32/48/57이 어떤 칩에 들어있느지 확인할 방법은 아직 못 찾음

The core has a memory management unit which includes separate instruction and data TLBs (Translation Look-aside Buffers). The TLBs and the Page Table Walk (PTW) modules support sv32, sv39, sv48 and sv57 virtualization scheme of RISC-V Instruction Set Manual, Volume II: Privileged Architecture, Version 1.11.

The above algorithm applies to Sv39, Sv48, and Sv57 with the following appropriate changes:

for Sv39 PTESIZE=8 and LEVELS=3
for Sv48 PTESIZE=8 and LEVELS=4
for Sv57 PTESIZE=8 and LEVELS=5

Any level of PTE may be a leaf PTE, so

in addition to 4 KiB pages, Sv32 supports 4 MiB megapages.
in addition to 4 KiB pages, Sv39 supports 2 MiB megapages and 1 GiB gigapages
in addition to 4 KiB pages, Sv48 supports 2 MiB megapages, 1 GiB gigapages, and 512 GiB terapages
in addition to 4 KiB pages, Sv57 supports 2 MiB megapages, 1 GiB gigapages, 512 GiB terapages, and 256 TiB petapages,

[링크 : https://chromite.readthedocs.io/en/latest/mmu.html]

 

 

virtualization 이야기가 나와서 보는데, 이거랑 저거랑은 다른 virtualization인가?

H와 S가

하이퍼바이저 지원(1.0) 

슈퍼바이저 지원(1.12)

Standard Extension for Hypervisor 1.0 Ratified 15
Standard Extension for Supervisor-level Instructions 1.12 Ratified 4

[링크 : https://en.m.wikipedia.org/wiki/RISC-V]

 

RV64IMAFDCH 막 이런식으로 붙게 되나?

근데 이놈의 ISA는 알파벳 순서도 아니고 규칙을 모르겠네 -_-

위키 기준으로는 extension 위에서 아래순서로 붙이는 느낌.

'embeded > risc-v' 카테고리의 다른 글

milk-v duo(risc-v)  (0) 2023.11.18
부품 도착! + 주문 취소!  (0) 2023.11.02
오늘의 지름  (0) 2023.11.01
risc-v 저가보드 / sipeed maix amigo  (0) 2023.11.01
risc-v linux without mmu, uclinux  (0) 2023.10.27
Posted by 구차니
embeded/risc-v2023. 11. 18. 07:37

이전에 봤던 risc-v k210 칩이 400mhz 였는데

이번이 구글 추천글로 보다가 발견한 쓸만할 것같은 녀석

 

9$ 라는데

라즈베리 파이 피코 보다는 좀 비싸지만 성능 측면에서는 메리트가 있어 보이고

내장 메모리도 넉넉한데다 이더넷 까지 옵션으로 할수 있는데다 리눅스도 올라간다니 기대가 되긴 한데

환율을 고려하면 전체 금액이 얼마나 되려나?

그리고 사이트 곳곳에 뭍어나오는 중국의 기운.. 크흡..

risc-v가 중국에서 대대적으로 밀고 있긴 하지만 qq나 위안화 그림이라던가

이런게 보이는데 찜찜해서(?) 어떻게 쓰지 싶다.

 

듀얼이긴 한데 두개의 코어 속도가 다르다. 그렇다고 700이 낮은건 아닌데 미묘하게 아쉽네

Hardware
- CVITEK CV1800B (C906@1Ghz + C906@700MHz)
- Dual RV64 Core up to 1GHz
- 64MB RAM
- Provides 10/100Mbps Ethernet via optional add-on board
- Technology supports running both Linux and RTOS

[링크 : https://milkv.io/duo]

 

리눅스는 buildroot로 구성해서 단일 파일로 나오려나?

[링크 : https://github.com/milkv-duo/duo-buildroot-sdk]

 

+

milk-v duo

[링크 : https://item.gmarket.co.kr/Item?goodsCode=3329506045] 17720원 / 무료배송(해외배송)

 

milk-v 이더넷 확장

[링크 : https://item.gmarket.co.kr/Item?goodscode=3329982517]  19040 / 무료배송(해외배송)

 

라즈베리 스타일의 베이스 보드(이더넷 + 허브) 25540

카메라 21350

[링크 : https://item.gmarket.co.kr/Item?goodsCode=3329507618]

'embeded > risc-v' 카테고리의 다른 글

risc-v sv39  (0) 2023.11.18
부품 도착! + 주문 취소!  (0) 2023.11.02
오늘의 지름  (0) 2023.11.01
risc-v 저가보드 / sipeed maix amigo  (0) 2023.11.01
risc-v linux without mmu, uclinux  (0) 2023.10.27
Posted by 구차니