
{"id":3343,"date":"2018-04-25T15:38:24","date_gmt":"2018-04-25T15:38:24","guid":{"rendered":"http:\/\/dyor.roboticafacil.es\/?p=3343"},"modified":"2018-04-27T11:44:30","modified_gmt":"2018-04-27T11:44:30","slug":"advanced-conversion-example-facilino","status":"publish","type":"post","link":"https:\/\/dyor.webs.upv.es\/en\/advanced-conversion-example-facilino\/","title":{"rendered":"Number conversion in Facilino"},"content":{"rendered":"<p>In this post, we show an example of number conversion in Facilino.<\/p>\n<p><!--more--><\/p>\n<p>In this example, we show on console different number representations: decimal, hexadecimal, octal and binary. Therefore, number 123 will be shown on console in a different way based on its number representation. For the decimal representation, it will show 123, but for hexadecimal the number will be 7B, in octal the number is 173, and in binary the number is 01111011.<\/p>\n<h3>Circuit<\/h3>\n<p>For this example, we simply need to connect the USB cable to the compute and open the Facilino (or Arduino IDE) console. Here we show the example using Arduino Nano v3.0 with the expansion shield:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3353\" src=\"https:\/\/dyor.webs.upv.es\/wp-content\/uploads\/2018\/04\/nano_example_bb.png\" alt=\"\" width=\"393\" height=\"282\" srcset=\"https:\/\/dyor.webs.upv.es\/wp-content\/uploads\/2018\/04\/nano_example_bb.png 393w, https:\/\/dyor.webs.upv.es\/wp-content\/uploads\/2018\/04\/nano_example_bb-300x215.png 300w\" sizes=\"auto, (max-width: 393px) 100vw, 393px\" \/><\/p>\n<h3>Facilino<\/h3>\n<p style=\"text-align: center;\"><iframe loading=\"lazy\" src=\"https:\/\/roboticafacil.es\/facilino\/blockly\/example.html?lang=en-GB&amp;proc=ArduinoNano&amp;example=advanced_conversion_example.bly\" width=\"650\" height=\"350\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><span style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><span style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/p>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Sorry, this entry is only available in Espa\u00f1ol.<\/p>\n","protected":false},"author":1,"featured_media":3402,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[99],"tags":[],"class_list":["post-3343","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-facilino-ejemplo"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/dyor.webs.upv.es\/wp-content\/uploads\/2018\/04\/nano_example_green.png","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3885,"url":"https:\/\/dyor.webs.upv.es\/en\/logica-booleana-facilino\/","url_meta":{"origin":3343,"position":0},"title":"Boolean logic instructions in Facilino","author":"soporte","date":"Monday May 28th, 2018","format":false,"excerpt":"In this post, we explain the use of Boolean logic instructions in Facilino. What's boolean logic? Boolean logic is the set of relations between tow binary variables, that is, variables that can only take two possible values: true or false. Binary, a.k.a boolean, variables are very important within the context\u2026","rel":"","context":"In &quot;Facilino Tutorial&quot;","block_context":{"text":"Facilino Tutorial","link":"https:\/\/dyor.webs.upv.es\/en\/category\/programacion\/facilino\/facilino-tutorial\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2018\/05\/facilino_logic.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3430,"url":"https:\/\/dyor.webs.upv.es\/en\/lectura-de-una-entrada-digital-pulsador-en-facilino\/","url_meta":{"origin":3343,"position":1},"title":"Digital Input Read (Switch) with Facilino","author":"soporte","date":"Thursday April 26th, 2018","format":false,"excerpt":"In this post, we show how to read a digital input in Facilino. We show three examples using different instructions, but all of them produce the same result. The aim of this post is to show how to read a digital input in Facilino. Facilino has generic purpose instructions to\u2026","rel":"","context":"In &quot;Facilino Ejemplo&quot;","block_context":{"text":"Facilino Ejemplo","link":"https:\/\/dyor.webs.upv.es\/en\/category\/programacion\/facilino\/facilino-ejemplo\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2018\/04\/switch_example_green.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3471,"url":"https:\/\/dyor.webs.upv.es\/en\/detectando-colores-sensor-tcs3200\/","url_meta":{"origin":3343,"position":2},"title":"Detecting Colours with TCS3200 sensor","author":"soporte","date":"Friday April 27th, 2018","format":false,"excerpt":"In this post we show how to detect and classify colours using TCS3200 colour sensor and Facilino. Facilino uses simple instructions to detect colours with the TCS3200 sensor. Internally, the instruction uses a SVM that has been trained to classify colours. These instructions require Facilino's license. The aim is to\u2026","rel":"","context":"In &quot;Facilino Ejemplo&quot;","block_context":{"text":"Facilino Ejemplo","link":"https:\/\/dyor.webs.upv.es\/en\/category\/programacion\/facilino\/facilino-ejemplo\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2018\/04\/tcs3200_example_green_key.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1961,"url":"https:\/\/dyor.webs.upv.es\/en\/facilino-control\/","url_meta":{"origin":3343,"position":3},"title":"Tutorial 2: Manejo de bucles en Facilino","author":"soporte","date":"Tuesday May 30th, 2017","format":false,"excerpt":"Aprende a utilizar instrucciones de bucle en Facilino. En esta entrada se explica un sencillo ejemplo en el que el usuario introduce un valor a trav\u00e9s del Monitor de Facilino y Arduino realiza una operaci\u00f3n el n\u00famero de veces especificado (en este caso simplemente haremos parpadear el LED de Arduino).\u2026","rel":"","context":"In &quot;Facilino Tutorial&quot;","block_context":{"text":"Facilino Tutorial","link":"https:\/\/dyor.webs.upv.es\/en\/category\/programacion\/facilino\/facilino-tutorial\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/05\/ejemplo2_11.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/05\/ejemplo2_11.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/05\/ejemplo2_11.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/05\/ejemplo2_11.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":2066,"url":"https:\/\/dyor.webs.upv.es\/en\/guia-de-instalacion-de-facilino-en-ubuntu\/","url_meta":{"origin":3343,"position":4},"title":"Facilino Instalation Guide in Ubuntu (Linux)","author":"soporte","date":"Friday June 16th, 2017","format":false,"excerpt":"In this entry, we will describe download, instalation and license activation proces for Facilino in Ubuntu. Facilino is a free software, although it include a licence (a number) to activate advance features. In this entry, we will first show the process for downloading and installing Facilino. Download and Instalation You\u2026","rel":"","context":"In &quot;Facilino Manual&quot;","block_context":{"text":"Facilino Manual","link":"https:\/\/dyor.webs.upv.es\/en\/category\/programacion\/facilino\/facilino-manual\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/06\/mi_cuenta.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/06\/mi_cuenta.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/06\/mi_cuenta.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/06\/mi_cuenta.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/06\/mi_cuenta.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":1930,"url":"https:\/\/dyor.webs.upv.es\/en\/facilino-suma-numeros\/","url_meta":{"origin":3343,"position":5},"title":"Tutorial 1: Adding up Two Numbers with Facilino","author":"soporte","date":"Monday May 29th, 2017","format":false,"excerpt":"Learn how to use functions with return, join strings, some basic math operation and show results through the Facilino's console. Example of summing up two numbers. In this post, we will explain how functions work in Facilino through a simple example. We will show, step by step how to use\u2026","rel":"","context":"In &quot;Facilino Tutorial&quot;","block_context":{"text":"Facilino Tutorial","link":"https:\/\/dyor.webs.upv.es\/en\/category\/programacion\/facilino\/facilino-tutorial\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/05\/func_with_return_setup_loop2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/05\/func_with_return_setup_loop2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/dyor.webs.upv.es\/wp-content\/uploads\/2017\/05\/func_with_return_setup_loop2.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/posts\/3343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/comments?post=3343"}],"version-history":[{"count":1,"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/posts\/3343\/revisions"}],"predecessor-version":[{"id":3458,"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/posts\/3343\/revisions\/3458"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/media\/3402"}],"wp:attachment":[{"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/media?parent=3343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/categories?post=3343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dyor.webs.upv.es\/en\/wp-json\/wp\/v2\/tags?post=3343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}