制造商零件编号 A000005
ARDUINO NANO ATMEGA328 EVAL BRD
Arduino
所订产品一般在 7-10个工作日 内送达中国,具体时间取决于收货地点。
最低订购金额为人民币 300 元,顺丰快递免运费配送。
当用人民币下单时,按照国际贸易条款 DDP(DigiKey 支付关税、海关费用和当地税款)方式结算。
电汇预付
更多来自全授权合作伙伴的产品
下单后,从合作伙伴发货平均需要时间 1-3 天,也可能产生额外运费。可能另外收取运费。 实际发货时间请留意产品详情页、购物车和结账页面上的说明。
国际贸易结算方式:CPT(交货时支付关税、海关费用和适用 VAT/应付税金)
有关详情,请访问帮助和支持
License: General Public License Compass WS2812/SK6812 (NeoPixel) Arduino
A compass is a device used for navigation and orientation, and consists of a magnetic needle that is mounted on a pivot and is free to rotate horizontally. The needle aligns itself with the Earth's magnetic field, and the scale under it typically has four cardinal directions marked on it: North, East, South, and West.
In addition to these four main directions, many compasses also have additional markings indicating the degrees or fractions of a circle. The device presented in the video represents an electronic version of the Compass, where the position of the needle is indicated by a group of three light-emitting diodes.
There is also an Oled display in the middle of the device, which shows the angle relative to the North Pole. In this case the resolution is greater than one degree, while in the case of LEDs the resolution is 6 degrees when moving one diode. When the red diode coincides with the top of the arrow and the value of the angle on the Oled display is about 0 and 360 degrees, then this side is North, opposite to it is South, and East and West are located at an angle of 90 degrees.
The device is relatively simple to build and consists of several components:
- Arduino Nano microcontroller
- HMC5883L compass module
- LED ring with 60 addressable RGB LEDs type WS2812B
The Arduino code is simple as it uses libraries for the Led ring as well as the compass module. The only modification is conditioned by the fact that we need to enter the declination angle for the specific area for a more accurate result, which we can find at: http://magnetic-declination.com/. We also have to calibrate the sensor using the calibration code provided in the library, and input the resulting values into the code in line:
compass.setOffset(27, 200);// Set calibration offset. See HMC5883L_calibration.ino
At the beginning, let me emphasize that the instrument is very sensitive to local magnetic fields and massive metal objects in its surroundings, so the results of this video may deviate to a certain extent. First, we need to place the compass in a horizontal position and then turn it on. After the initial logo, a group of 3 LEDs appears on the screen, the two surrounding ones are Green, and the middle one, which represents the direction, is Red.
By equating the arrow with the red LED we get the direction of the North pole. By rotating the compass around its own axis, the OLED display shows the angle between north and the tip of the arrow at the given moment. So, the red LED always points north. In my case I used a box with a OLED display from one of my previous projects, and the LED ring is mounted in a situable, 3D printed case, and below is the .STL file for 3D printing.
谢谢!
敬请关注收件箱中的 DigiKey 新闻与更新!
请输入电子邮件地址