Python Forum
beginner programming LED light
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
beginner programming LED light
#1
Hello.

I am an older student returning to school and a research trainee at a science lab. I am conducting an experiment where I have to program a small light to go on and off at random intervals in the span of 1 hour. I have absolutely no coding experience and very limited technical knowledge. So I have the following elementary questions about Python before I download it:

1) Does Python have a physical page where I would type my code into? For example, if I need to type a research paper, I would open Word and physically type letters into a page on Word.

2) Are there sample scripts I can use as a template for programming lights to go on and off?

3) Can you recommend Python compatible building materials - I have seen information about using arduino and Raspberry Pi boards, and LED bulbs?

Thanks.
Reply
#2
1. You can use any 'plain' editor to write python code, word will not work as it surrounds text with formatting statements, that are saved, even though not seen in the text. Notepad, Notepad++ are examples of simple editors, then there's the 'IDE' which offers all sorts of code enhancements such as syntax checkers, auto-completion, etc. Most of these are free, and you can see what's available by googling "python IDE's".

2. There are many scripts like this available for all sorts of MCU's look for names like blink.py example: https://gist.github.com/sophiekovalevsky/8891122

3. The raspberry pi should be able to drive LED's ddirectly from the GPIO, but add a current limiting resistor so as not to burn out the chip. Example: https://www.youtube.com/watch?v=lzIDqWp2mdQ
Reply
#3
Okay - thanks for the detailed info.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with Python Script to generate SVG Dot Matrix Pattern for LED Light Guide iamrickm 2 904 Aug-25-2023, 06:07 PM
Last Post: iamrickm
  Python and DMX (aka, light controller) ScottAF 4 2,933 Apr-06-2023, 07:09 PM
Last Post: ScottAF
  Python with LED light strip question. Ostromaj 5 4,213 Aug-07-2018, 09:06 PM
Last Post: Ostromaj
  Programming - beginner dexter7d 5 3,460 Apr-05-2018, 09:40 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020