미국인 미팅
베터리 잔량표시 (버튼 없이 표시됨)
Bargraph로 표시됨
단계는 아직 미정
버튼2개 (1번버튼 수동모드 // 2번버튼 자동모드)
http://www.ds-parts.co.kr/goods_detail.php?goodsIdx=19289
https://faqs.noctua.at/en/support/solutions/articles/101000081757-what-pin-configuration-do-noctua-fans-use-
https://coolenjoy.net/bbs/cooling/413288
https://www.amazon.ca/Delta-AFB0712VHB-4-Pin-70MM-Sensor/dp/B00U6V9S0Q
https://iotdunia.com/led-bargraph/
// LED Bar Graph Arduino Project
const int analogPin = A0; // Potentiometer input pin
const int ledCount = 10; // Total number of LEDs
int ledPins[] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11}; // Digital output pins for LEDs
void setup() {
for (int i = 0; i < ledCount; i++) {
pinMode(ledPins[i], OUTPUT);
}
}
void loop()
{
int sensorValue = analogRead(analogPin); // Read analog input
int ledLevel = map(sensorValue, 0, 1023, 0, ledCount); // Scale to LED count
for (int i = 0; i < ledCount; i++) {
digitalWrite(ledPins[i], i < ledLevel ? HIGH : LOW); // Light up LEDs accordingly
}
}
=====================================================================
각 Zener Voltage를 신경써서 Zener Diode를 골라야함
======================================================================
https://www.learningaboutelectronics.com/Articles/Voltmeter-circuit-with-zener-diodes.php
빨간 동그라미로 표시한 구간에만 전류가 들어가서
LED가 3개 켜집니다.
제너 1V +
저항은 고정 1K
저항은 고정 1K
===========================================================================
https://www.circuits-diy.com/simple-12v-battery-status-indicator/#google_vignette
제일 끝단인 오른쪽 끝의 Zener는 그보다 작은 11V가 작합하다.
1n4729
1n4731
-----------------------------------------------------------------------------------------------------
https://ko.aliexpress.com/item/1005003147137462.html?src=google&pdp_npi=4%40dis!KRW!1368!1152!!!!!%40!12000024352767033!ppc!!!&src=google&albch=shopping&acnt=675-269-3084&isdl=y&slnk=&plac=&mtctp=&albbt=Google_7_shopping&aff_platform=google&aff_short_key=UneMJZVf&gclsrc=aw.ds&&albagn=888888&&ds_e_adid=&ds_e_matchtype=&ds_e_device=c&ds_e_network=x&ds_e_product_group_id=&ds_e_product_id=ko1005003147137462&ds_e_product_merchant_id=107801588&ds_e_product_country=KR&ds_e_product_language=ko&ds_e_product_channel=online&ds_e_product_store_id=&ds_url_v=2&albcp=22388205295&albag=&isSmbAutoCall=false&needSmbHouyi=false&gad_source=1&gad_campaignid=22384687625&gbraid=0AAAAA_Dz3HFb85lMosXbMsRIoRZH4s74E&gclid=CjwKCAjwravBBhBjEiwAIr30VIhYpEOI9HPmICF_U2wi-Bbv7wmvyvNvxruEYfVjZy2QXPqEP0lGOBoC_fQQAvD_BwE
★tutorial
댓글 없음:
댓글 쓰기