博文

目前显示的是 十二月, 2017的博文

Master Your Micro:bit with Arduino IDE —— Accelerometer & Magnetometer

图片
Magnetometer Lets start with the magnetometer chip, the MAG3110. Click here to download:  MAG3110 Datasheet We can talk to the chip using an Arduino library. You can download "Sparkfun's library" by clicking the button below! Download  Sparkfun MAG3110 breakout library Restart the IDE. Now you can upload some examples. I suggest starting with the Basic example which is replicated below [cceN_cpp theme="dawn"] /* ********************************************* * SparkFun_MAG3110_Basic * Triple Axis Magnetometer Breakout - MAG3110 * Hook Up Guide Example * * Utilizing Sparkfun's MAG3110 Library * A basic sketch that reads x y and z readings * from the MAG3110 sensor * * George B. on behalf of SparkFun Electronics * Created: Sep 22, 2016 * Updated: n/a * * Development Environment Specifics: * Arduino 1.6.7 * * Hardware Specifications: * SparkFun MAG3110 * Bi-directional Logic Level Converter * Arduino Micro * * This cod

Holiday Notice

图片
Hello my friends! It's glad to see you again. Christmas Day is past. Did you have a good time? And have you got our free gifts? I hope you have had a merry Christmas. Our  Christmas promotion  still continues. Don't forget to own our lucky star! Now, it's Friday again. We are going to have a 3-day holiday. Here's our holiday period: Date: Dec.30, 2017 ~ Jan.1, 2018. (Note: Orders within holiday will be delivered until Jan.2rd) As you know, Jan. 1 is the first day of the year. In China, it is also called Solar New Year's Day. We usually have a one-day holiday for Solar New Year's Day. Together with the weekend of this week, we have a 3-day holiday now. It's quite good for us to relax from our busy daily works. For me, I am planning to go back home, get together with my family members, make some dumplings with them and have a big meal. Sounds a good idea, right? By the way, do you still remember our Christmas promotion period? Yes, it

Elecfreaks Ring:bit User Guide

图片
Introduction  Ring:bit is a simple module based on micro:bit. It can lead out 3 IO connectors, power connectors, ground connectors on the micro:bit board. On this module, we have transformed P0/P1/P2 into general connectors for GVS electric bricks. Among them, we have extended P2 to a GVS connector with multiple usages. There is a slide switch on the board. Slide the switch to "S", then you can connect SR and SL2 (digital signal modules) at the same time. Slide to "P2", you can connect digital module or simulating module but only one of them. This module adopts 3 No. 7 batteries for power supply. It is very simple, easy and practical to use. With this module, you can drive all kinds of GVS modules like servos, line-hunting modules and LED modules. Shipping List: 1 x Ring:bit Features: Develop Environment: Code Kingdoms Java script, Microsoft Blocks , Microsoft Touch Develop , Python Support GVS connectors With a switch, one IO connector can be

Interesting Processing Programming Guidance for Designer - 3D Graphic

图片
Three dimension is the progress of two dimension. Before learning new knowledge points, I hope you have been adept to two dimensional graphic drawing. Compared with three-dimension software's like 3dMax, Maya, drawing graphics with code in three-dimension space has a totally different experience. Because there is no intuitive interface inside to control and adjust the position of objects, so it will be comparatively abstract when writing code. One of the difficulties is you have to familiar with space coordinate system and relative transformation operations. Drawing in the flat interface, you only have to consider two dimensions: x axle and y axle. But in three dimensional space, there will be an extra z axle. Coordinate System in Three-dimension Space Let's take a look at the coordinate system in three-dimension space. Compared with the original flat coordinate system, you can find x axle and y axle are still the same. The positive direction of the newly inc