Skip to content

Instantly share code, notes, and snippets.

View asamant's full-sized avatar

Aniket Samant asamant

View GitHub Profile
@asamant
asamant / masters-thesis.md
Last active October 20, 2020 19:32
Master's thesis code overview

Master's thesis code overview

My Master's thesis, titled "Scheduling Strategies for Event-Triggered Control Using Timed Game Automata over CAN Networks" was undertaken at DCSC, Faculty of 3mE, TU Delft, between December 2019 and August 2020. The thesis document can be found in the university's public repository.

The code developed during the course of the thesis is broadly divided into two parts

  • one for generating strategies in a predefined format, and,
  • one for implementing them on a physical (HIL) setup, using the output generated.

Strategy generation

@asamant
asamant / Notes-jekyll.md
Created March 13, 2020 19:58
A gist consisting of notes I made from a jekyll tutorial on YouTube.

Running notes from GiraffeAcademy

Refer to this video playlist. These notes were made accordingly.

on using Jekyll for website generation

  • install jekyll on your system first
  • create new website material using jekyll new <name>
  • a new directory will be created with files for the website
  • cd into this new directory
@asamant
asamant / Dimmer_observations.md
Last active September 11, 2019 09:47
A note consisting of some observations recorded using [this](https://github.com/asamant/photoresistor-measurement) setup.

Dimmer observations

Light intensity values from a Crownstone (released or dev plug/built-in) are recorded using a photoresistor-based voltage divider to observe variation/drift over a period of time. The voltage values are read as analog inputs and transmitted using the serial link between the Arduino board and the PC, and hence the values are not exactly in any particular units but only indicative of light intensity (i.e. higher values = brighter.)

A released Crownstone plug (ACR010C)

Raw data and plots

  • At 10% dimming: The mode of the distribution is around 246, and the variance is quite high.
  • At 13% dimming: Mode = 276, variance quite high but less than at 10%
@asamant
asamant / Dimming_notes.md
Last active September 17, 2019 14:58
Dimming in Crownstones

!! Document probably obsolete !! - Refer to this document for an updated version.

The Crownstone Dimmer

Dimming in light bulbs

Dimming in the context of light bulbs refers to the process of reducing the supply of power to a bulb in a controlled manner to have reduced light intensity. It is usually performed using Pulse Width Modulation (PWM) by gating the input mains supply i.e. by switching off the input to the bulb for a certain fraction of every cycle of the sine wave. The period for which the supply is on, expressed as a percentage of the wave's time period, is called the duty cycle.

Dimming is generally one of two kinds:

  • Leading-edge dimming: The leading edge of every half wave is chopped to zero for a period determined by the duty cycle.
This is just a test gist. I wanted to see what the feature was about.