|
|||||||||||||||||||||
|
|||||||||||||||||||
[로봇사이언스몰][코딩키트][마이크로비트] Relay for micro:bit mnk00061
The MonkMakes Relay for micro:bit is a solid-state (no moving parts) relay that allows an output of a micro:bit to turn things on and off.
A micro:bit can turn an LED on and off directly, but anything more powerful requires something like a relay or a transistor. Using a transistor to switch something on and off requires a shared ground connection with the micro:bit and a knowledge electronics that you or your students may not be ready for. The MonkMakes Relay for micro:bit is much easier to use, acting like a simple micro:bit controlled switch.
This relay can be used to switch low voltage devices such as light bulbs, a motor, a small heating element or even a string of 12V LED lighting. The voltage needs to be kept under 16V, but the relay will automatically protect itself against too much current.
FEATURES
Getting Started
Connecting your micro:bit
The Relay requires just two connections to the micro:bit. One to GND (ground) and one to whatever pin is to be used to control the relay’s switching action.
When attaching the alligator clips to the micro:bit, make sure that the clips are perpendicular to the board so that they are not touching any of the neighbouring connectors on the micro:Bit edge connector.
Here’s an example of how you could wire up a MonkMakes Relay for micro:bit to turn an old fashioned light bulb on and off.
HEX File
The quickest way to try out your relay is to DOWNLOAD THIS HEX FILE >and then copy it onto your micro:bit. The program will turn the relay on and off once a second.
JavaScript Blocks Editor
Set the controlling pin to 1 and the relay contacts will close, set it to 0 and the contacts will open again. Its as simple as that. So, to make your relay turn on and off once a second, open the Blocks Editor, add a forever block and then the digital write blocks from the pins category and the pauses from the basic category.
You can also click on the image of the blocks below to open up the Blocks Editor on this project.
MicroPython
Paste the following code into the Python window and then Download the file and copy it onto your your micro:bit.
from microbit import *
while True:
pin0.write_digital(True)
sleep(500)
pin0.write_digital(False)
sleep(500)
Analog Outputs
The latest MonkMakes Relay for micro:bit can do more than just switch things on and off. It can also be used with micro:bit analog outputs. Look closely at your Relay for micro:bit and is it has the version number v1ev (under the word ‘Board’) then it can be used with the ‘analog write’ block in the blocks editor or the ‘write_analog’ function in MicroPython. If your board has the version number v1e then it is not suitable for use with analog outputs – sorry you were unlucky to get one of the small batch of first boards to be sold.
The output of the Relay for micro:bit is not linear at low PWM and high PWM values as the following chart illustrates.
The y-axis shows the current in mA for a test load resistor supplied from a constant voltage source. The x-axis is the analog write value (0 to 1023). As you can see, there is a dead zone up to a analog output value of about 100, followed by a relatively good linear region right up to about 1000, after which the output effectively becomes ‘on’.
The tests were carried out at the default PWM frequency of 50Hz for the micro:bit. Lower frequency PWM is expected to produce more linear results.
b. 해외상품 :
1) 해당상품: 아이콘이 부착된 상품
2) 구매금액 700,000원 이상 : 입금확인 후 최소 5일 ~ 최대 2주
3) 구매금액 700,000원 이하 : 입금확인 후 최소 1주 ~ 최대 8주
4) 단, 해외계약업체에 품절되지 않은 상품에 한함
② 구매상품 종류가 많을 경우 예상 준비기간 보다 더 소요 될 수 있습니다.
③ 주문하신 상품은 출고완료 메일 또는 문자 수신 후 익일~최대7일(도서,산간지역)
이내에 수령하실 수 있습니다.
④ 제주(\3,500원)/도서지역(\5,000원)은 배송비가 추가됩니다.
제주,도서, 산간지역은 타 지역보다 배송기간이 길어질 수 있습니다.
⑤ 아이콘이 부착된 상품이라도 국내재고가 있을 수 있습니다.
⑥ 해외 현지 사정으로 인해 공지한 배송기간보다 더 길어 질 수 있습니다.
⑦ 해외상품은 반품/교환/취소가 어려울 수 있으니 신중히 주문하시기 바랍니다.
3. 소비자의 단순변심/착오구매에 의한 청약철회제한안내
① 전자상거래 등에서의 소비자보호에 관한 법률 제17조 제2항 및 동 시행령
제21조에 의한 청약철회 제한 사유에 해당하는 경우 및 기타 객관적으로
이에 준하는 것으로 인정되는 경우에 한합니다.
② 소비자의 단순변심, 착오구매에 의한 교환/반품 시에 발생하는 배송비는
소비자가 부담합니다.
③ 판매자의 실수,제품하자 등의 사유로 인한 배송비는 판매자가 부담합니다.
4. 상품의 교환/반품/보증조건 및 품질보증기준안내
① 상품이 공급된 날(배송완료일)로부터 7일 이내에 교환/반품을 신청 할 수 있습니다.
그러나 아래의 사유에 해당 하는 경우에는 교환/반품 신청이 받아들여지지 않을 수도 있습니다.
a. 소비자의 책임으로 인해 상품이 훼손/멸실 된 경우(확인을 위한 포장훼손제외)
b. 소비자의 사용에 의해 상품의 가치가 현저하게 감소한 경우
c. 시간의 경과로 인해 상품의 재판매가 불가하게 된 경우
d. 판매방식의 특성으로 판매자에게 회복할 수 없는 피해가 발생한 경우 (주문제작 상품, 청약철회상품 등)
② 교환/반품/보증조건 및 품질보증기준은 『소비자기본법』에 따른 소비자분쟁해결기준에 따라 피해를 보상합니다.
5. 소비자피해보상 처리, 재화 등에 대한 불만 및 분쟁처리 안내
판매자 | 본사 | 셀러등급 | |
---|---|---|---|
상호명 | (주)위키모바일(로봇사이언스몰) | 대표자 | 김경식 |
사업자등록번호 | 215-87-14086 | 통신판매신고번호 | 제2008-서울송파-0867호 |
연락처 | 02-2283-1300 | 사업장 소재지 | 서울특별시 송파구 문정동 643-1 엠스테이트 B동704호 |
| ||||||||||||||||||||||||||
쇼핑몰이용안내 | |
전자계약사이트 | |
|
|||||||||
회사명 : (주)위키모바일(로봇사이언스몰)
| 사업자등록번호 : 215-87-14086 [사업자정보확인]
| 주소 : 서울특별시 송파구 법원로 114 엠스테이트 B동704호 통신판매업 신고 : 제2008-서울송파-0867호 | 연락처 : 02-2283-1300 | FAX : 02-2283-1304 | 개인정보보호 책임자 : 김 경식 | 대표자 : 김경식 호스팅사업자 : 가비아 퍼스트몰 | contact : ask@wikimobile.co.kr for more information *로봇사이언스몰의 콘텐츠 저작권은 (주)위키모바일에 있으며 무단·전재·복사 배포를 금합니다. |
|||||||||