DEV Community

Marcelo Figueiredo Cabrera
Marcelo Figueiredo Cabrera

Posted on

Usando RaspberryPI via workstation / Using RaspberryPI through workstation

The english version follows after the portuguese version.

Versão em Português

Para quem estiver mexendo com Raspberry, nos primeiros passos e quer reduzir quantidade de componentes ligados (monitor, teclado, mouse), essa dica simples será uma boa.

O que é Raspberry e qual diferença com o Arduíno?

Para quem nem sabe o que é Raspberry PI: pegue um computador simples e coloque-o numa placa de circuito do tamanho de um cartão de crédito (um pouco maior...), pronto: você tem um imenso recurso para poder fazer protótipo de solução em internet-das-coisas. Claro que, para projetos comerciais e em larga escala, a idéia é pegar algo menor e que seja mais "justo" em termos de custo e benefício, talvez o mesmo seja muito caro ou mesmo potente para o projeto. O legal é: o preço é acessível, você pode colocar num cartão de memória um sistema operacional bem enxuto (Windows ou Linux) e conectar a ele sensores, monitor, mouse, enfim tudo que precisar em seu projeto e que ele for compatível.

Ao contrário do Arduíno, que é um micro-controlador e você vai precisar fazer deploy de programa na linguagem específica dele e ajustar o código ao funcionamento do mesmo, o Raspberry tem um poder de processamento maior, portanto mais recursos tem à disposição - mas nem sempre é tudo isso que você precisa e o Arduíno, com seu custo-benefício, acaba sendo bem mais usado. Como dizia meu grande professor Samuel, de Microprocessadores na UNESP/Guaratinguetá: não é necessário matar uma formiga com bomba atômica... o 4004 foi o microprocessador mais usado no mercado (não sei se continua sendo até hoje e não duvido que seja...), mais que o Z80 e 8085, nos anos 2000. Portanto tem muito espaço para o Arduíno e terá também ao Raspberry, tudo depende do que você precisa.

A dica!

A dica de hoje é algo simples e vou atualizando esse canal com mais dicas do Raspberry e Arduíno em breve (estou nesse semestre fazendo disciplina de IoT na USP de São Carlos), vamos focar no Raspberry: precisa usar seu Raspberry sem monitor, mouse e teclado? A má notícia: sempre que for conectar numa rede, de início, será necessário ter os componentes para poder fazer a primeira conexão ao Wi-fi... sem jeito de fugir disso (não que eu saiba! Quem souber, manda a dica aqui!). A boa é: feita essa primeira conexão, você pode localizar o Raspberry na rede com uma aplicação de rastreio de componentes na rede wi-fi e conectar via PuTTY e VNC (para interface visual), bastando configurar o mesmo.

Para quem quer ver passo-a-passo visual, seguem vídeos:

Instalando o Angry IP Scanner, da Microgênios

Download do Angry IP Scanner

Aqui o vídeo 5 explica muito bem a configuração do VNC e do PuTTY: Brincando com idéias: Primeiros passos com Raspberry

O último vídeo desse link é outra boa recomendação: Eletronite: Primeiros passos com Raspberry

English Version

For those who are working with Raspberry, starting the first steps and want to reduce the amount of connected components (monitor, keyboard, mouse), this simple tip will be a good one.

What is Raspberry and what is the difference with Arduino?

For those who don't even know what Raspberry PI is: take a simple computer and put it on a circuit board the size of a credit card (actually a little bigger...), that's it: you have a huge resource to be able to prototype Internet-of-Things solution. Of course, for commercial and large-scale projects, the idea is to get something smaller and that is more "fair" in terms of cost and benefit, perhaps it is too expensive or even powerful for the project. The cool thing is: the price is affordable, you can put a very "thin" operating system (Windows or Linux) on a memory card and connect sensors, monitor, mouse, in short, everything you need in your project and that it is compatible.

Unlike Arduino, which is a microcontroller and you will need to deploy a program in its specific language and adjust the code to its operation, Raspberry has greater processing power, so more resources are available - but not that's always all you need and the Arduino, with its cost-effectiveness, ends up being much more used. As my great professor Samuel, of Microprocessors at UNESP/Guaratinguetá, used to say: it is not necessary to kill an ant with an atomic bomb... the 4004 was the most used microprocessor on the market (I don't know if it still is and I have no doubt that it is.. .), more than the Z80 and 8085, in the 2000s. So there's plenty of room for the Arduino and you'll also have the Raspberry, but it depends on what you need.

The tip!

Today's tip is something simple and I'll be updating this channel with more Raspberry and Arduino tips soon (I'm taking an IoT course at USP in São Carlos this semester), let's focus on Raspberry: you need to use your Raspberry without a monitor, mouse and keyboard? The bad news: whenever you connect to a network, at first, you'll need to have the components to be able to make the first connection to the Wi-Fi... there's no way around it (not that I know of! !). The good news is: once this first connection is made, you can locate the Raspberry on the network with a component tracking application on the wi-fi network and connect via PuTTY and VNC (for visual interface), just by configuring it.

For those who want to see a visual step-by-step, here are videos:

Installing Angry IP Scanner, by Microgenios

Download Angry IP Scanner

Here video 5 explains the VNC and PuTTY setup very well: Playing around with ideas: Getting started with Raspberry

The last video on this link is another good recommendation: Eletronite: Getting Started with Raspberry

Top comments (0)