Posts

Showing posts from November, 2024

BroCode Games like Snake

 https://www.youtube.com/watch?v=Je0B3nHhKmM&t=12s&ab_channel=BroCode Using JS to control HTML like   cells.forEach(cell => cell.addEventListener("click", cellClicked)); //single line effectively adds click functionality to every cel Already done PaperSissors and TicTacToe using Perplexity to understand line of code like this

Robot Smart

Image
 Collision Avoidance https://dronebotworkshop.com/elegoo-robot-car-part-3/ https://dronebotworkshop.com/elegoo-robot-car-part-3/ https://www.youtube.com/watch?v=6QQta3Cc568&t=793s 112524_CollAvd --------------------------------------------- 12/19 Finally received Sonar mount Installing... Testing?

servo Test Succ found 90

 using 112524_sevoTest_copy_20241125112336 ---------------------------------------  1210 Servo mounted Bkwards!+ Reversed mounting - good! Now to test ultrasonic https://dronebotworkshop.com/hc-sr04-ultrasonic-distance-sensor-arduino/ Distance Ultrasonic - good! Now finish assb

HC-SR04 Ultrasonic Distance Sensor

 Drone sketch 112524_UltraDistance_copy_20241125110847 Got working immediately Seems accurate --------------------------------------- 1/1/25  New US sensor tests Test Good Range Test

555 simple - This HomeRun - Probably only use Sq Wave Gen

 https://www.youtube.com/watch?v=VurDwrtTF3g&t=502s Falstad 111924_simple555 smaller cap incr freq incr pot incr Duty Cycle !! Pin 5 tie Grd 100nf cap --------------- DC f R1 R2 C 1nf nf 60% 144 100,000 200,000 0.00000002 0.000000001 2 67% 160 150,000 150,000 0.00000002 0.000000001 2 67% 160 150,000 150,000 0.00000002 0.000000001 2 67% 32 150,000 150,000 0.0000001 0.000000001 100 67% 6 150,000 150,000 0.0000005 0.000000001 500 67% 3 150,000 150,000 0.000001 0.000000001 1000 52% 3,429 1,000 10,000 0.00000002 0.000000001 2 67% 4,800 5000 5000 0.00000002 0.000000001 2 67% 192,000 5000 5000 0.0000000005 0.0000000005 0.5 The highest frequency achievable with a 555 timer in astable mode is typically around 500 kHz The frequency for a 555 timer in astable mode with a capacitance of 50 nF and resistance of 20 kΩ is 480 Hz. The frequency of a 555 timer in astable mode can be expressed as a function of the capacitor C and resistors R1 and R2. The formula for the frequency is: f = 1....

ESP32 - Crashed Arduino IDE after trying to install library

 Also ard app hidden?  got to find & delete Got it working again after several ReInstalls Open a terminal and run:  find -iname "ardu*" This will show you all files and directories with "ardu" in the name 1 . ____________________________________ The recommended method for installing the ESP32 library on Arduino IDE is as follows: ## Step 1: Install Arduino IDE Ensure you have the latest version of Arduino IDE installed on your computer. You can download it from the official Arduino website[1]. ## Step 2: Add ESP32 Board URL 1. Open Arduino IDE 2. Go to File > Preferences 3. In the "Additional Board Manager URLs" field, enter:    https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json 4. Click "OK" to save the preferences[1][3] ## Step 3: Install ESP32 Board 1. Go to Tools > Board > Boards Manager 2. Search for "ESP32" 3. Find "ESP32 by Espressif Systems" and click the "Inst...

ESP 32-wifi & bluetooth

 Discovered Drone Vid 10 yrs old couldn t load lib https://www.youtube.com/watch?v=xPlN_Tk3VLQ&t=121shttps://www.youtube.com/watch?v=xPlN_Tk3VLQ&t=121s https://www.youtube.com/watch?v=xPlN_Tk3VLQ&t=116s

N channel MOSFET WITH ARD Excellent vid - MOSFETs - From an Arduino Perspective

  https://www.infineon.com/dgdl/irl3705n.pdf?fileId=5546d462533600a40153565f29f42532 https://www.infineon.com/dgdl/irl3705n.pdf?fileId=5546d462533600a40153565f29f42532 to drive Hi Freq or Hi Voltage Turn on 3.3V

AM2320 Temp_OLED

11/23 still NAN... will try other modules try other sketches with UNO instead NANO  Reads NAN but runs 112024_oled_AM2320_drone OLED working fine Addes 10k pukkups...no good! ---------------------------------------------------- 112024_dht11_oled_copy_20241122192617 OLED working with DHT11.. printing ok OLED Need to ck code on 2320 & understand why it sends NAN Graph temp show some history

Opt Amp

 11/22 Excellent Vid & hes using Falstad https://www.youtube.com/watch?v=O7hkxXEA3K8&t=2267s

Mize Website Got Moon Landing Page Working

 Enter to go to Menu2 Still need to add Electronics Blog and Notes and James Mize

Mics Directional

 Got two of the digital set to turn "ON: Drops output >1000 to below 200 Will use to trigger directional sound Got it kinda working BB002  112024_2_mics_dir_copy_20241120130140 Descent vid https://www.youtube.com/watch?v=bMs5J4bJOD0&t=5s Need to play with Threshold setting (2?) And sensitivity on mics May need to test other mics

Ard Board Not Recognized !!

 Check Device Mgr for Port ( not always shown in IDE..prob 4 Nano

Ordered Levine Motor Controllers for Motors

OLED & am2320 temperature sensor working independly

 Now to get them working together... No luck with contactless level sensor Started TICTAC Brocode - RockSessors done& posted to Mize

Mize Family woking on Landing Page & RockPaper

 still need doc 

3 Mic Test...

 Setting up to test 3 mics ... using https://www.youtube.com/watch?v=RwHGioglbk8&t=93s  I can use this prgm to use train noise to .... not sure about direction.. set R/L thresholds separately

JS Edabit+Perplity !

Understanding the winning code in Challenges Perplexity BIG help

Mics still ...

 been testn  various versions for RR applic None working very well got one more test with Mic that has both d & A outputs https://www.youtube.com/watch?v=RwHGioglbk8

JS Edabit - rediscovered

 https://edabit.com/challenge/fBJyQSe5Jmbm9hPAG do old exercises first..some very interesting! then join

ARD Directional Sound

Ard-5 LED Analog sensor finished & and avail for all analog reads

 110724_sound5leds https://keep.google.com/#NOTE/1Gitgc2NSRC0-JDOFOnpTdh0IcgD8X5kVPfjpb_BKG6tPx7HlDq1aVJCz2TIj0A -------------------------- Arduino boards can interface with a variety of sensors that utilize analog readings. These sensors output continuous voltage levels, which the Arduino can read using its built-in Analog-to-Digital Converter (ADC). Below is a list of common analog sensors that can be used with Arduino: ****Light Sensors**** - **Photoresistor (LDR)**: This sensor changes resistance based on light intensity, allowing it to measure ambient light levels. ****Temperature Sensors**** - **KY-013 Temperature Sensor**: An analog temperature sensor that uses an NTC thermistor to measure temperatures from -55°C to +155°C. - **LM35 Temperature Sensor**: Outputs a voltage proportional to the temperature in Celsius. ****Motion and Proximity Sensors**** - **Ultrasonic Sensor**: While primarily digital, some models offer analog outputs for distance measurement. - **PIR Motion S...

JS Coding Challenges

 Decided to use challenges to advance JS instead of tuts Found a few online that are free with solutions

Electronics - https://falstad.com/circuit/circuitjs.html

 Added Electronics in a big way my Arduino & JS Triad.  Order new Maker Books and use Mims.  The Electonics adds a thinking/ problems solving element.  Falstad is easy to use and the current flow and charts add much. JS use Bro for easy lessons. Ard working mics... a lot more to mics than I thought.  Quick use for trains. Need to buy an R4 wifi... does WIFI extent to tracks?

Mics w Amps

 Finished sketch LED lights depending on loudness.  Wasnt working.  Testing various mics.  Using my Osc to confirm voltage generated.   Need to review sketch for Loudness trigger ponts. https://www.youtube.com/watch?v=bMs5J4bJOD0 The Electret Microphone Amplifie triggers based upon set point.. Digital Keys KY 038 results in analog wave form = 1/2 3.3V...enough to trigger with voice I have these uses; light leds a f loudness tell direction train 100mv  100ms Got the 5 LED Loudness board working.  Had to play with setpoints and delays.

Directioal Sound

DirSnd   Not working.  Need to test Sound Devices separatly to determine kind of response Digital or Analog? Got sensor working.  Now have to test sketch.

Nano Working

 Ran Blink test Plan on using with Sound (from Train)