{ "info": { "author": "Sayad Pervez", "author_email": "pervez2504@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Arduino_Master Alpha Version 3.0\n___\n___\n# What's new ?\n#### >>> Added 6 new functions : readSerial, writeSerial, dynamicSerial, horizontal, vertical and marker.\n#### >>> Fixed a bug that prevented direct access to pyserial functions without **`serial.`** prefix.\n#### >>> ERROR ID that displays the part of code where something got wrong. It could be either due to your faulty inputs or a bug. In case of a bug, paste the error message in the comments along with the ERROR ID. This feature was added for easier bug elimination !\n___\n___\n# Intro:\n#### Embedded C is used to program microcontrollers like Arduino. However embedded C could never compete with Python's simplicity and functionality. Also Arduino being a microcontroller, we get a lot of garbage values which we require to filter before utilizing. This module eases the process of extracting and passing data to Arduino via Serial communication.\n#### This Module also provides Easy and flexible Data Science functions for Data extraction, filtering, removing garbage values and Data Visualization !\n___\n___\n# Installing via pip:\n### Use the following command to install Arduino_Master using pip.\n### **`pip install Arduino_Master`**\n___\n___\n# Automatic Installation of other required Modules:\n#### This module requires two more packages namely **`pyserial`** and **`matplotlib`**. Yet just by importing this module using the import statement or by using any function, unavailable modules will be installed and imported automatically. Make sure you have good internet connection and if still you get ModuleNotFound error, try installing these two modules manually via pip.\n___\n___\n# Importing Functions:\n#### **`from Arduino_Master import *`** statement is used to import all available functions from Arduino_Master. This version contains the following functions which we'll be discussing shortly. These functions can be grouped into 2 categories:\n#### >> For Extracting and Writing data to Arduino:\n#### $ ardata\n#### $ readSerial\n#### $ writeSerial\n#### $ dynamicSerial\n#### >> Data Science enabled functions for filtering and visualizing Data:\n#### $ Graph\n#### $ compGraph\n#### $ horizontal\n#### $ vertical\n#### $ marker\n#### $ most_frequent\n#### $ least_frequent\n#### $ compress\n#### $ filter\n___\n___\n# ardata():\n#### ardata function is used to communicate with the arduino via Serial. This function returns a list of values available in the Serial port.\n#### **`ardata(COM ,lines= 50 ,baudrate= 9600 ,timeout= 1 ,squeeze= True ,dynamic= False ,msg= 'a' ,dynamicDelay= 0.5 )`** is the function header.\n___\n## COM\n#### **`COM`** parameter is used to specify the COM port to which arduino is connected to. You can pass either an integer or a string specifying the COM port.\n### Eg:\n```python\n# COM parameter usage:\ndata = ardata(8) # or\ndata = ardata(COM=8)\n#This will be interpreted as COM8\n# If your COM port's name is not in this format, use the following:\ndata = ardata(\"YOUR_COM_PORT_NAME\") #or\ndata = ardata(COM=\"YOUR_COM_PORT_NAME\")\n```\n___\n## lines\n#### **`lines`** denotes the number of data units or lines it reads from the Serial monitor of Arduino. The default value is set to **50** which can be changed. Note that based on another parameter **`squeeze`**, the number of elements in the list this function returns might be lesser than the that of actual data.\n___\n## baudrate\n#### **`baudrate`** parameter is used to specify the baudrate at which the Serial communication occurs at. The default value is **9600** which is the most widely used baudrate.\n___\n## timeout\n#### **`timeout`** is used to specify the timeout value in seconds. The default value is **1**.\n___\n## squeeze\n#### **`squeeze`** is used to specify if the data needs to be compressed. This uses a function from data science part of this module **`compress()`** which is used to remove **_repeated and sequential_** set of data with a single piece of data.\n### Eg:\n```python\n# Consider the following list of data:\ndata = [ 1 , 2 , 2 , 2 , 3 , 3 , 5 , 1 , 1 , 2 , 5 , 5 ]\ninfo = compress(data)\nprint(info)\n# This will print [ 1 , 2 , 3 , 5 , 1 , 2 , 5 ]\n```\n#### **`squeeze`** uses the same function and takes either True (or) False boolean values as parameters. By default, this parameter is set to **True**. Referencing the above example code, if squeeze is set to **False**, ardata will retrun **data** and if it is set to **True** which is the default setting, it will return **info**.\n___\n## dynamic\n#### **`dynamic`** is used to specify if the Serial communication is just to read from the serial port or for both reading and writing to the serial port. The default value is **false** which means you can only read from the Serial port. If dynamic is set to true, the string from the **`msg`** parameter will be written to the Serial port every time before reading a value.\n___\n## msg\n#### **`msg`** parameter specifies the message that is to be written in the serial monitor. the default value is **'a'**. *It is a must to pas this parameter if dynamic is set to true.*\n___\n## dynamicDelay\n#### **`dynamicDelay`** is used to specify the time this program has to wait after writing a value to the console and to start reading from the COM port. It is experimentally determined that a delay of 0.5 seconds is mandatory in order to prevent overlapping of passed messages.\n___\n> Note: ardata() reads one line at a time and hence Serial.println() should be used while coding Arduino and make sure there are no unnecessary Serial.print() or Serial.println() statements present in the code.\n___\n### Demo:\n### 1) One way communication: With dynamic set to False\n```C\n// Code uploaded to Arduino\nint check = 2;\nvoid setup() {\nSerial.begin(9600);\npinMode(check,INPUT);\n}\n\nvoid loop() {\nif(digitalRead(check)==HIGH)\n Serial.println(\"HIGH\");\nelse\n Serial.println(\"LOW\");\ndelay(500);\n}\n```\n```python\n# Python code:\nfrom Arduino_Master import *\n# info contains complete data\ninfo = ardata(8,squeeze=False)\nprint(f\"{len(info)}=>{info}\")\n#compressed info contains compresses form of data\nCompressedInfo = compress(info)\nprint(f\"{len(CompressedInfo)}=>{CompressedInfo}\")\n\n'''\nOutput:\n50=>['LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'LOW', 'LOW', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW']\n5=>['LOW', 'HIGH', 'LOW', 'HIGH', 'LOW']\n\nThus actual data contains 50 elements whereas compresses data contains only 5 elements yet represents the outline of the data.\nif info = ardata(8) was used instead, we would get the compressed version of data here represented by CompressedInfo.\n'''\n```\n___\n### 2) Two way communication: With dynamic set to True\n```Code\n// Code uploaded to Arduino\nint check = 2;\nvoid setup() {\nSerial.begin(9600);\npinMode(check,INPUT);\n}\n\nvoid loop() {\nif(Serial.available()>0)\n{\n if(Serial.readString()==\"State\")\n {\n if(digitalRead(check)==HIGH)\n Serial.println(\"HIGH\");\n else\n Serial.println(\"LOW\");\n }\n\ndelay(500);\n}\n}\n// This code will print the result on the serial monitor only if \"State\" is sent to the serial monitor\n```\n```python\n# Python code\nfrom Arduino_Master import *\n\ninfo = ardata(8,dynamic=True,msg=\"State\")\nprint(info)\n'''\nThis would print\n['LOW', 'HIGH', 'LOW', 'HIGH', 'LOW', 'HIGH']\nSince squeeze by default is set to True, data is compressed!\n'''\n```\n### Though both these demonstrations are used to extract data from Arduino, the later is better than the former. The reason is that when dynamic is set to True, we ask for instantaneous information whereas when dynamic is set to False, there is a possibility of getting initial data alone rather than instantaneous data since arduino keeps writing the values to the Serial monitor.\n### The functionality being inherited from pyserial, It is possible to call all functions from pyserial module without prefixing the functions with 'serial.' statement.\n___\n___\n# readSerial\n#### **`readSerial`** reads only one line from the Arduino.\n#### **`readSerial( COM , baudrate = 9600 , timeout = 1 )`** is the function header.\n| Parameters | Usage |\n|------------|------|\n| COM | Specify the COM port. Similar to ardata(), you can pass either an integer or the complete name as a string.|\n| baudrate =9600| Set the baudrate. Default value is **9600**. |\n| timeout =1| Set the timeout. Default is **1**|\n\n#### returns a list with one element\n___\n___\n# writeSerial()\n#### **`writeSerial`** writes only one string to the Arduino's Serial monitor.\n#### **`writeSerial(COM,baudrate=9600,timeout=1,msg=\"\")`** is the function header.\n| Parameters | Usage |\n|------------|------|\n| COM | Specify the COM port. Similar to ardata(), you can pass either an integer or the complete name as a string.|\n| baudrate =9600| Set the baudrate. Default value is **9600**. |\n| timeout = 1| Set the timeout. Default is **1**|\n| msg = \"\"| String to be written to the Serial Port |\n\n#### Returns nothing !\n___\n___\n# dynamicSerial\n#### **`dynamicSerial`** is similar to dynamic mode of ardata() except that this returns a **_list_** with just one element in it.\n#### **`dynamicSerial( COM , baudrate = 9600 , timeout = 1 , msg = \"a\" , dynamicDelay = 0.5 )`** is the function header.\n| Parameters | Usage |\n|------------|------|\n| COM | Specify the COM port. Similar to ardata(), you can pass either an integer or the complete name as a string.|\n| baudrate =9600| Set the baudrate. Default value is **9600**. |\n| timeout =1| Set the timeout. Default is **1**|\n| msg =\"a\"| String to be written to the Serial Port |\n| dynamicDelay = 0.5| Similar to that of ardata's dynamicDelay. Default value is set to **0.5 seconds**. Any value lesser than this would result in overlapping of the input. |\n\n#### This function returns a list with only one element.\n___\n### Note:\n#### For an arduino program that prints a value on Serial monitor only when we send it a value, the combination of writeSerial and readSerial functions won't work. dynamicSerial has to be used at that place.\n```python\n# Use\ndynamicSerial(8,msg=\"Give DATA\")\n\n# INSTEAD OF\nwriteSerial(8,msg=\"Give Data\")\ndata=readSerial(8)\n\n# The latter would only return an empty list !!!\n```\n___\n___\n# Graph\n#### **`Graph`** function is used to visualize a list of data.\n#### **`Graph( y= None ,xlabel= 'dataPiece' ,ylabel= 'Amplitude' ,label= 'myData' ,color= 'red' ,title= 'Graph' ,markersize= 7 ,stl= 'ggplot' ,d= {} ,mark= 'x' )`** is the function header.\n| Parameters | Usage |\n|--------------|---------|\n| y = None | Pass a list of values to be plotted along the y-axis. The x-axis is automatically generated depending on the number of parameters in your given list.|\n| xlabel = 'dataPiece' | Used to label the X-axis legend |\n| ylabel = 'Amplitude' | Used to label the Y-axis legend |\n| label = 'myData' | What you want your data to be called |\n| color = 'red' | What color you want your data to be plotted with |\n| title = 'Graph' | Name of the graph |\n| mark = 'x' | Used to set the marker type. Refer this StyleSheet => [Marker_Style_Sheet](https://matplotlib.org/3.1.0/api/markers_api.html) |\n| markersize = 7| Size of the plotting line. |\n| stl = 'ggplot' | Style of Graph you wish. Refer this StyleSheet => [StyleSheet](https://matplotlib.org/3.1.0/gallery/style_sheets/style_sheets_reference.html) |\n| d = {} | Used to pass a dictionary. This is used only when you need custom x values instead of default sequentially arranged X-values. y and d must not be passed together. |\n\n\n#### Passing Strings to y (or) Dictionaries whose values are strings will also be plotted accordingly !\n___\n### Demo:\n### Demonstration 1: Passing a list to y\n```Python\n# Python Code\nmyList = [ 1 , 2 , 3 , 4 , 5 , 1 , 7 , 7 , 10 , 8]\nGraph(myList,stl='dark_background')\n```\n### Output:\n![Graph_1](https://github.com/SayadPervez/Arduino_Master/blob/master/Graph_1.jpeg?raw=true)\n___\n### Demonstration 2: Plotting using a dictionary to get custom X-values.\n```Python\n# Python Code\nmyDict = { 0:10 , 1:12 , 2:12.05 , 3:-0.1 , 4:-12.05 , 5:0 , 6:5 , 6:5 , 10:5.5 }\nGraph(d=myDict)\n```\n### Output:\n![Graph_2](https://github.com/SayadPervez/Arduino_Master/blob/master/Graph_2.jpeg?raw=true)\n___\n### Demonstration 3: Plotting Strings:\n```pytho\n# Python code\nlistOfStrings = ['LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'LOW', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'HIGH', 'LOW', 'LOW', 'HIGH', 'HIGH']\nGraph(listOfStrings)\n```\n### Output:\n![Graph_3](https://github.com/SayadPervez/Arduino_Master/blob/master/Graph_3.jpeg?raw=true)\n#### The same can also be done by passing a Dictionary !\n___\n___\n# compGraph\n#### **`compGraph`** is used to compare two sets of data ( 2 lists or 2 dictionaries or 1 list with 1 dictionary)\n#### **`compGraph( y= None ,y2= None ,xlabel= 'dataPiece' ,ylabel= 'Amplitude' ,label1= 'myData-1' ,label2= 'myData-2' ,color1= 'red' ,color2= 'blue' ,title= 'Graph' ,markersize= 7 ,stl= 'ggplot' ,fit= True ,d1= {} ,d2= {} `)** is the function header.\n| Parameters | Usage |\n|--------------|---------|\n| y = None | Pass a list of values to be plotted along the y-axis. The x-axis is automatically generated depending on the number of parameters in your given list.|\n| xlabel = 'dataPiece' | Used to label the X-axis legend |\n| ylabel = 'Amplitude' | Used to label the Y-axis legend |\n| label1 = 'myData-1' | What you want your first set data to be called |\n| label2 = 'myData-2' | What you want your second set data to be called |\n| color1 = 'red' | What color you want your first set of data to be plotted with |\n| color2 = 'blue' | What color you want your second set of data to be plotted with |\n| title = 'Graph' | Name of the graph |\n| markersize = 7| Size of the plotting line. |\n| stl = 'ggplot' | Style of Graph you wish. Refer this StyleSheet => [StyleSheet](https://matplotlib.org/3.1.0/gallery/style_sheets/style_sheets_reference.html) |\n| d1 = {} | Used to pass a dictionary as the first set of data. This is used only when you need custom x values instead of default sequentially arranged X-values. y and d1 must not be passed together. |\n| d2 = {} | Used to pass a dictionary as the second set of data. This is used only when you need custom x values instead of default sequentially arranged X-values. y2 and d2 must not be passed together. |\n| fit = True | A bit complex, and hence explained below |\n\n___\n## fit\n#### **`fit`** parameter is used to specify if both the graphs need to be scaled to the maximum size or not. When y and y2 values have different number of elements **`fit = True`** enables changing X-values of the list of data which has less number of elements to equalize and approximate the correctness of distribution of data.\n### With Fit **Disabled (left)** and With Fit **Enabled (right)**\n![Fit](https://github.com/SayadPervez/Arduino_Master/blob/master/Fit.JPG?raw=true)\n#### In the above pics, the red colored data represents raw_data and blue colored data represents filtered data. So naturally filtered set of data will have less number of elements in it and if compGraph() function is used the result would be similar to the left Graph which looks a bit absurd. When **fit = True** enables data to fit into the whole graph without affecting the Amplitude of the data. In simple words, smaller list of data is stretched to the size of the bigger list of data along the X-axis to give an **_approximation_** without using dictionaries which are comparatively difficult to use than lists so as to make the functions newbie friendly.\n#### compGraph is similar to Graph function just with visualizing one more list of data\n___\n___\n# horizontal\n#### Creates a line parallel to X-axis.\n#### **`horizontal( y , lbl = 'marker' , start = 0 , end = 10 )`** is the function header.\n|Parameter| Usage|\n|---------|------|\n|y|The distance from the origin is specified here|\n|lbl = 'marker'|label is set to 'marker' by default|\n|start = 0| value from which this line should start|\n|end = 10 | value at which this line should end |\n\n# Use this function before the Graph() function you wish the line to plotted in.\n___\n___\n# vertical\n#### Creates a line parallel to Y-axis.\n#### **`vertical( x , lbl = 'marker' , start = 0 , end = 10 )`** is the function header.\n|Parameter| Usage|\n|---------|------|\n|x|The distance from the origin is specified here|\n|lbl = 'marker'|label is set to 'marker' by default|\n|start = 0| value from which this line should start|\n|end = 10 | value at which this line should end |\n\n#### Use this function before the Graph() function you wish the line to plotted in.\n___\n### vertical and horizontal are used as markers in a graph and are always black in color !\n```Python\nvertical(5)\nhorizontal(5)\nGraph([1,2,3,4,5,6,7,8,9,10])\n# This would result in the following Graph\n\n```\n![HorizonalVertical](https://github.com/SayadPervez/Arduino_Master/blob/master/Markers.jpeg?raw=true)\n___\n# marker\n#### **`marker`** function creates a plus shaped plot at a given co-ordinate.\n#### **`marker( x , y , limit = 1 , lbl = \"marker\" )`** is the function header.\n|Parameter| Usage|\n|---------|------|\n|x|X Coordinate|\n|y|Y Coordinate|\n|limit=1| size of the marker|\n|lbl='marker'|specify a label|\n\n#### Use this function before the Graph() function you wish this marker to be plotted\n```python\nmarker(5,6)\nGraph([1,2,3,4,5,6,7,8,9,10])\n# This would result in the following Graph\n```\n![markers_2](https://github.com/SayadPervez/Arduino_Master/blob/master/Markers_2.jpeg?raw=true)\n___\n___\n# most_frequent\n#### **`most_frequent`** is used to return the most frequently occurring element in a given list.\n#### **`most_frequent(List)`** is the function header. Just pass a list as a parameter, and it will return the most repeated element in the given list.\n___\n# least_frequent\n#### **`least_frequent`** is used to return the least frequently occurring element in a given list.\n#### **`least_frequent(List)`** is the function header. Just pass a list as a parameter, and it will return the least repeated element in the given list.\n___\n___\n# compress\n#### **`compress()`** which is used to remove **_repeated and sequential_** set of data with a single piece of data.\n#### **`compress(li)`** is the function header.\n![compress](https://github.com/SayadPervez/Arduino_Master/blob/master/compress.JPG?raw=true)\n#### In the above pic, red colored plot refers to the actual, uncompressed data while blue represents compressed data. As you can see the only purpose of compress is to show the trend of data and since Fit is enabled, an approximation of data is shown. In simple words, **`compress`** replaces continuous equivalent elements by a single element. **`compress`** is used only to visualize how many times a data piece varies to and fro and hence just an approximation. The next pics also has the same color representation as of before and demonstrates **`compress()`** function !\n![compress2](https://github.com/SayadPervez/Arduino_Master/blob/master/compress2.JPG?raw=true)\n![compress3](https://github.com/SayadPervez/Arduino_Master/blob/master/compress3.JPG?raw=true)\n___\n___\n# filter\n#### filter function is used to remove unnecessary data from a list.**_This function is only compatible with lists. Next version might have its compatibility increased to Dictionaries too._**\n#### **`filter(data ,expected= [] ,expected_type= None ,max_deviation= None ,closeTo= None ,numeric= True ,limit= [] )`** is the function header.\n| Parameters | Usage |\n|--------------|---------|\n| data | This parameter accepts a list. |\n| expected = [ ] | Pass a list of expected elements that you need in the filtered list |\n| expected_type = [ ] | Filters data based on the type. You can pass the following as arguements : int , float , str , 'num' , 'all'. Note that **num** and **all** alone are placed within single quotes since they are custom made types. 'num' denotes all numeric data like int and float. 'all' denotes all kinds of data.|\n|max_deviation = None| Permitted maximum deviation from calculated average. |\n|closeTo = None| Used to find data close to the given arguement. If closeTo alone is used without max_deviation, then max_deviation is taken as 1 by default. |\n|numeric = True| Used to specify if you are looking for numeric data for calculation. If you wish to have strings of data in your filtered list make sure you set numeric to False. |\n|limit = [ ]| Used to specify filter out garbage values! It basically means, no matter what, the data would not have gone beyond these limits. If it did, it is a Garbage Value. The format is **_limit=[ start-limit , end-limit ]_** |\n\n### Why and How average is calculated ?\n#### While filtering data with max_deviation, a value has to be specified from which the upper and lower limits containing data are filter.(i.e.) if max_deviation is 1.5, data is filtered such that only data within +(or)- 1.5 than average is present in the filtered data.\n### This is how average is calculated.\n#### If closeTo value is present, closeTo is taken as average.\n#### If closeTo value is not passed, the most frequent data piece in the list of data is taken as average.\n#### If closeTo is not passed as well as all the elements in the given data are unique, average is calculated in the conventional way. But with huge garbage values, the average would shift so much that no data remains in that area returning an empty list. For that when limit parameter is passed, garbage values are filtered out earlier before other calculations take place.\n# Depending on the number of lines you need to read, time you need to wait will increase !!!\n# Garbage values occur when your arduino's pins come in contact with each other. No matter if it is a cloth or your hand, arduino is sensitive enough to sense it and give you garbage values !!\n___\n# Demo:\n# Garbage Value Removal:\n```C\nString msg;\nconst int trigPin = 9;\nconst int echoPin = 10;\ndouble duration;\nfloat distance;\n\nvoid setup()\n{\n Serial.begin(9600);\n pinMode(echoPin, INPUT);\n pinMode(trigPin, OUTPUT);\n}\n\nvoid loop()\n// If information is available in Serial port from arduino get it and then checking for the distance\n{ if (Serial.available()>0)\n{\n msg=Serial.readString() ;\n if(msg==\"d\")\n {\n digitalWrite(trigPin, LOW);\n delayMicroseconds(2);\n digitalWrite(trigPin, HIGH);\n delayMicroseconds(10);\n digitalWrite(trigPin, LOW);\n duration = pulseIn(echoPin, HIGH);\n distance= duration/29/2;\n Serial.println(distance);\n }\n else\n int i=0; // Just Do nothing.....(Never Mind statement !!! )\n\n}\n}\n```\n___\n```Python\n# importing area !!\nfrom Arduino_Master import *\n\n# collecting data and saving it as a list in info\ninfo=filter(ardata(8,squeeze=False,dynamic=True,msg=\"d\",lines=50),expected_type=\"num\")\n\n# adding garbage values for checking purpose\ninfo.insert(7,7000)\ninfo.insert(8,4500)\n\n# Removing all the repeating elements in order to test the average function !!!\n# Since the data is from an Ultrasonic sensor, Its limit is known and it is 2 metre or 200 cm\nInfo=filter(list(set(info)),max_deviation=4,limit=[0,200])\nprint(info)\nprint(Info)\n\nGraph(info)\n\nGraph(Info)\n\ncompGraph(info,Info)\n```\n___\n![Garbage_Value_removal_1](https://github.com/SayadPervez/Arduino_Master/blob/master/Garbage_Value_Removal_1.jpeg?raw=true)\n### Without any filter, The above pic displays the data from Arduino with custom added garbage values in order to test.\n___\n![Garbage_Value_removal_2](https://github.com/SayadPervez/Arduino_Master/blob/master/Garbage_Value_Removal_2.jpeg?raw=true)\n### Data after filtering is displayed above !! Thus conventional average works fine !!\n___\n![Garbage_Value_removal_3](https://github.com/SayadPervez/Arduino_Master/blob/master/Garbage_Value_Removal_3.jpeg?raw=true)\n### Comparison of data is displayed above. Since the limits of the sensor were specified, values as high as 4500 and 6000 were removed and then the average was calculated making this module a well built one. Red is raw data whereas Blue is filtered data.\n___\n## If used correctly, you can filter your data in the following ways !!!\n![Example_1](https://github.com/SayadPervez/Arduino_Master/blob/master/Light_Intensity_6.JPG?raw=true)\n### Check light intensity and with previously measured values, you can check if the light is switched on or not just using an LDR.\n### Learn how to plot a Graph like this using Arduino_Master through this link : [Plotting light intensity using Arduino_Master](https://www.instructables.com/id/Light-Intensity-Plotting-Using-Arduino-and-Pythons/)\n___\n![Example_2](https://github.com/SayadPervez/Arduino_Master/blob/master/US_Comparison.jpeg?raw=true)\n### Impulse removal Example in the above pic\n___\n![Example_3](https://github.com/SayadPervez/Arduino_Master/blob/master/US_closeTo_Comparison.png?raw=true)\n### You can also detect and measure impulses !!!\n___\n___\n# Developed by SAYAD PERVEZ !!!\n# Trust me Am just 17.\n# EmailID : [pervez2504@gmail.com]\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/SayadPervez/Arduino_Master", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "Arduino-Master", "package_url": "https://pypi.org/project/Arduino-Master/", "platform": "", "project_url": "https://pypi.org/project/Arduino-Master/", "project_urls": { "Homepage": "https://github.com/SayadPervez/Arduino_Master" }, "release_url": "https://pypi.org/project/Arduino-Master/3/", "requires_dist": null, "requires_python": "", "summary": "Data Science enabled Data extraction and control library for Arduino with easy Data Visualizations !.", "version": "3" }, "last_serial": 5338338, "releases": { "0.0.4": [ { "comment_text": "", "digests": { "md5": "1ae163b4b8c4b6bc94a687a587f38e8b", "sha256": "a7c260c0a990017b1909cfd5fa0caffe1c8f96c3060bb5a2e265f65a1563824d" }, "downloads": -1, "filename": "Arduino_Master-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "1ae163b4b8c4b6bc94a687a587f38e8b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12318, "upload_time": "2019-05-26T19:34:50", "url": "https://files.pythonhosted.org/packages/69/38/6e08019004b137bc648a51148e5a2eeca01a2643413fdaf3749a99931694/Arduino_Master-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "512725b813308731b9d94eab2abcad0a", "sha256": "6c5e96678ec48d97d8270adbc611d4712dadf79538e50c04d4f7b07b453d6cad" }, "downloads": -1, "filename": "Arduino_Master-0.0.4.tar.gz", "has_sig": false, "md5_digest": "512725b813308731b9d94eab2abcad0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12201, "upload_time": "2019-05-26T19:34:52", "url": "https://files.pythonhosted.org/packages/5b/68/0cef7720489b742c4be5e62d79effcdd3222611c02b07b061bc8f8f28853/Arduino_Master-0.0.4.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "296af7a8ffae845a6b19141ea8016b55", "sha256": "c7fae311d435cab1a8dfb4c6a0373bcac9c4bee15dcb228da07fb57ea486402e" }, "downloads": -1, "filename": "Arduino_Master-2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "296af7a8ffae845a6b19141ea8016b55", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11882, "upload_time": "2019-05-27T03:41:19", "url": "https://files.pythonhosted.org/packages/e3/13/826cd682bbf3893824e4b3aee4afda3adb89fbc3433410b9248d315dcb84/Arduino_Master-2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cb4dd6a96f38a2c9edbbdad56333baf0", "sha256": "441a48b734143c7fdcad68a8b3b7bf3e39c7b502fda7da791f5b2c23d4bc85a6" }, "downloads": -1, "filename": "Arduino_Master-2.0.tar.gz", "has_sig": false, "md5_digest": "cb4dd6a96f38a2c9edbbdad56333baf0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11758, "upload_time": "2019-05-27T03:41:21", "url": "https://files.pythonhosted.org/packages/d2/82/b4929984c2d084b44990357de6c2a3b067bdb790e4b97d2d7eb0ea42692b/Arduino_Master-2.0.tar.gz" } ], "3": [ { "comment_text": "", "digests": { "md5": "9cb657ca10928fe5cbcdc58ecb20a9a7", "sha256": "71a86ee4174af95322aa3ba54e8135e0b808d44c2b5f77a18463236b1d1558b8" }, "downloads": -1, "filename": "Arduino_Master-3-py3-none-any.whl", "has_sig": false, "md5_digest": "9cb657ca10928fe5cbcdc58ecb20a9a7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13686, "upload_time": "2019-05-29T21:19:51", "url": "https://files.pythonhosted.org/packages/a1/a2/f37928ebe6ccfc183699c0eb9811b868dbefa3f0ac7abcc36ffac8c4b0ed/Arduino_Master-3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a73701ab4b97265bbbac343dbb6ba511", "sha256": "c651d8202c7e6737e1373fe84e09bb2ec9408b9977a2d9be8130c4fe7a4dae15" }, "downloads": -1, "filename": "Arduino_Master-3.tar.gz", "has_sig": false, "md5_digest": "a73701ab4b97265bbbac343dbb6ba511", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20340, "upload_time": "2019-05-29T21:19:53", "url": "https://files.pythonhosted.org/packages/d0/b6/fc4a7f4ffbcaf666f8146a694a89be517c1aa1862b95d59a6b3a1a94ea16/Arduino_Master-3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9cb657ca10928fe5cbcdc58ecb20a9a7", "sha256": "71a86ee4174af95322aa3ba54e8135e0b808d44c2b5f77a18463236b1d1558b8" }, "downloads": -1, "filename": "Arduino_Master-3-py3-none-any.whl", "has_sig": false, "md5_digest": "9cb657ca10928fe5cbcdc58ecb20a9a7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13686, "upload_time": "2019-05-29T21:19:51", "url": "https://files.pythonhosted.org/packages/a1/a2/f37928ebe6ccfc183699c0eb9811b868dbefa3f0ac7abcc36ffac8c4b0ed/Arduino_Master-3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a73701ab4b97265bbbac343dbb6ba511", "sha256": "c651d8202c7e6737e1373fe84e09bb2ec9408b9977a2d9be8130c4fe7a4dae15" }, "downloads": -1, "filename": "Arduino_Master-3.tar.gz", "has_sig": false, "md5_digest": "a73701ab4b97265bbbac343dbb6ba511", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20340, "upload_time": "2019-05-29T21:19:53", "url": "https://files.pythonhosted.org/packages/d0/b6/fc4a7f4ffbcaf666f8146a694a89be517c1aa1862b95d59a6b3a1a94ea16/Arduino_Master-3.tar.gz" } ] }