[EN]Calculate Regression with NumPy.


This article is to convert the implementation of the regression model from the article of ESP32-C3 to NumPy on Raspberry Pi and PC and use the display as Matplotlib, as shown in Figure 1, which can be found from the previous article. The temperature and humidity from the 1-day data were obtained from parameters a and b of the regression equation and the resulting equation or model was used to determine the possible temperature values over the 1 day.

Figure 1 Result of the program
Read More

[TH] PIC18F458 Ep.3 An Introduction to Using MPLAB X IDE with XC8.

บทความนี้เป็นการใช้งานชุดพัฒนาโปรแกรม MPLAB X IDE (ดังภาพที่ 1) เพื่อใช้กับไมโครคอนโทรลเลอร์แบบ 8 บิตของบริษัท Microchip ด้วยภาษา C ผ่านทางเครื่องมือแปลภาษาที่เรียกว่า XC8 เพื่อเป็นพื้นฐานเบื้องต้นสำหรับการใช้งานในบทความต่อไป ซี่งขั้นตอนการพัฒนาโปรแกรมด้วยเครื่องมือชุดนี้มีขั้นตอนดังนี้

  1. สร้างไฟล์โครงงานและกำหนดประเภทของชิพไมโครคอนโทรลเลอร์เป็น PIC18F458
  2. สร้างไฟล์ภาษา C สำหรับชุดแปลภาษา XC8
  3. สร้างข้อมูลเกี่ยวกับการตั้งค่าไมโครคอนโทรลเลอร์เพื่อนำมาแปะเข้ากับโค้ดโปรแกรม
  4. คอมไพล์โปรแกรม
  5. นำไฟล์ที่ได้นั้นไปอัพโหลดเข้าบอร์ดผ่านทางเครื่องมือ PICKit2 หรือใหม่กว่า
ภาพที่ 1 หน้าต่างโปรแกรม MPLAB X IDE + XC8
Read More

[EN] Blender : Animation Tab

This article discusses how to create a basic animation from Blender (We used version 3.0) to create the movement of the robot arm as shown in Figure 1. The content of this article introduces Animation Tab, model preparation, and put on the skeleton and Key Frame animation as a basic guide for those interested in creating further animations.

Figure 1 Mechanical arm example
Read More

[EN] Unity3D The great game maker

This article introduces Unity3D, a very popular game creation program. Because there are so many facilities needed to make a game. Called quite complete, such as the manipulation of three-dimensional objects, gravity, system movement of objects, can create games on multiple platforms for example. Controlling objects requires knowledge of a programming language which can be practiced.

Figure 1 Unity’s logo
Read More

[EN] Play the Wav File with ESP32.

This article applies the ESP32 microcontroller’s DAC and MicroPython to open WAV files, which are audio recording files and exported to the DAC connected to the speakers as shown in Figure 1. The used file is an uncompressed 8-bit mono PCM audio file. And the sample program supports a sampling rate at about 50KHz or at 44100 level.

Figure 1 An example of a board to test the functionality of an article
Read More

[TH] Office Syndrome our series : PIRIFORMIS SYNDROME

บทความนี้เป็นบทความต่อเนื่องเกี่ยวกับการดูแลร่างกายสำหรับคนที่ทำงานหน้าจอคอมพิวเตอร์นานๆ หรือสำหรับคนที่มีปัญหาจากการนั่งนานๆ ซึ่งพูดถึงกล้ามเนื้อ Piriformis ลักษณะอาการ สาเหตุ และวิธีบรรเทาให้อาการลดลง

ภาพที่ 1 กล้ามเนื้อ Piriformis
จาก www.dreamstime.com

Read More

[EN] Arduino: ESP32-S2’s DAC&ADC.

After testing the DAC and ADC of both the ESP32, SAM-D21, LGT8F328P and STM32L432KC, This time, it’s the time of the ESP32-S2 that we have. The test performance is still the same as before using the DAC. Three types of waves are sent out: zigzag, triangular, and sine waves and connect to the ADC pin to read the value and test the graph to see what it looks like.

In this experiment, DAC1 is connected to the ADC as shown in Figure 1. The ESP32-S2 has 2 ports of 8-bit DAC called DAC1 and DAC2. The ADC has a 12-bit resolution, which is seen to have the same properties as the ESP32, but whether the results are the same or not, you can tell that they are probably different because they use different microcontrollers. The ESP32-S2 uses the same one as the ESP32-S3 with only one core and no BLE.

Figure 1 Neucleo L432KC with A3 connected to D3
Read More

[EN] Try the SoftHost USB library for ESP32.

This article is an example of using nathalis‘s ESP32 Soft Host to try and test it on an OLED display with a resolution of 128×64 dots as shown in Figure 1 to receive data from a keyboard or mouse, it uses only a few GPIO pins but receives data from a keyboard with a large number of keys. Normally, the ESP32 microcontroller does not support a direct USB connection, so it requires programming by using a timer to check the status of the pins D- and D+ to be assembled into data at the byte level and assembled into packs of data for further interpretation.

Figure 1 Connected devices and boards are illustrated in this article
Read More